test server correct header naming order
authorAndy Green <andy.green@linaro.org>
Tue, 30 Sep 2014 00:23:06 +0000 (08:23 +0800)
committerAndy Green <andy.green@linaro.org>
Tue, 30 Sep 2014 00:23:06 +0000 (08:23 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/libwebsockets.h
test-server/test-server.c

index 7b5e697..6f3425a 100644 (file)
@@ -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,
index c43b9c4..2d17175 100644 (file)
@@ -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:",