test server correct header naming order
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
2af585660d
commit
9887bdb438
2 changed files with 5 additions and 0 deletions
|
@ -280,6 +280,8 @@ struct lws_tokens {
|
|||
int token_len;
|
||||
};
|
||||
|
||||
/* don't forget to update test server header dump accordingly */
|
||||
|
||||
enum lws_token_indexes {
|
||||
WSI_TOKEN_GET_URI,
|
||||
WSI_TOKEN_POST_URI,
|
||||
|
|
|
@ -109,6 +109,7 @@ dump_handshake_info(struct libwebsocket *wsi)
|
|||
static const char *token_names[] = {
|
||||
/*[WSI_TOKEN_GET_URI] =*/ "GET URI",
|
||||
/*[WSI_TOKEN_POST_URI] =*/ "POST URI",
|
||||
/*[WSI_TOKEN_OPTIONS_URI] =*/ "options uri",
|
||||
/*[WSI_TOKEN_HOST] =*/ "Host",
|
||||
/*[WSI_TOKEN_CONNECTION] =*/ "Connection",
|
||||
/*[WSI_TOKEN_KEY1] =*/ "key 1",
|
||||
|
@ -133,7 +134,9 @@ dump_handshake_info(struct libwebsocket *wsi)
|
|||
/*[WSI_TOKEN_HTTP] =*/ "Http",
|
||||
|
||||
"Accept:",
|
||||
"a-c-request-headers:",
|
||||
"If-Modified-Since:",
|
||||
"if-none-match:",
|
||||
"Accept-Encoding:",
|
||||
"Accept-Language:",
|
||||
"Pragma:",
|
||||
|
|
Loading…
Add table
Reference in a new issue