diff --git a/lib/parsers.c b/lib/parsers.c index c33eccc2..d40eeb68 100644 --- a/lib/parsers.c +++ b/lib/parsers.c @@ -378,9 +378,6 @@ int lws_parse(struct lws *wsi, unsigned char c) /* last we issued was / so SEEN_SLASH */ wsi->u.hdr.ups = URIPS_SEEN_SLASH; break; - case URIPS_ARGUMENTS: - /* leave them alone */ - break; } if (c == '?' && !enc) { /* start of URI arguments */ @@ -396,7 +393,7 @@ int lws_parse(struct lws *wsi, unsigned char c) ah->frag_index[WSI_TOKEN_HTTP_URI_ARGS] = ah->nfrag; /* defeat normal uri path processing */ - wsi->u.hdr.ups = URIPS_ARGUMENTS; + wsi->u.hdr.ups = URIPS_IDLE; goto swallow; } diff --git a/lib/private-libwebsockets.h b/lib/private-libwebsockets.h index 3cc6ee4a..778dd2fa 100644 --- a/lib/private-libwebsockets.h +++ b/lib/private-libwebsockets.h @@ -582,7 +582,6 @@ enum uri_path_states { URIPS_SEEN_SLASH, URIPS_SEEN_SLASH_DOT, URIPS_SEEN_SLASH_DOT_DOT, - URIPS_ARGUMENTS, }; enum uri_esc_states {