mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
URIPS_ARGUMENTS is redundant
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
fac92eb7cb
commit
f35801b19d
2 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue