Subject: Fix test numbers Origin: v2.9.4-4-g805a0d1 Upstream-Author: Derek Argueta Date: Mon May 4 02:11:29 2020 -0700 PR-URL: https://github.com/nodejs/http-parser/pull/511 Reviewed-By: Ben Noordhuis --- a/test.c +++ b/test.c @@ -1172,7 +1172,7 @@ ,.body= "" } -#define SOURCE_ICE_REQUEST 42 +#define SOURCE_ICE_REQUEST 43 , {.name = "source request" ,.type= HTTP_REQUEST ,.raw= "SOURCE /music/sweet/music ICE/1.0\r\n" @@ -1192,7 +1192,7 @@ ,.body= "" } -#define POST_MULTI_TE_LAST_CHUNKED 43 +#define POST_MULTI_TE_LAST_CHUNKED 44 , {.name= "post - multi coding transfer-encoding chunked body" ,.type= HTTP_REQUEST ,.raw= "POST / HTTP/1.1\r\n" @@ -1219,7 +1219,7 @@ ,.chunk_lengths= { 0x1e } } -#define POST_MULTI_LINE_TE_LAST_CHUNKED 44 +#define POST_MULTI_LINE_TE_LAST_CHUNKED 45 , {.name= "post - multi line coding transfer-encoding chunked body" ,.type= HTTP_REQUEST ,.raw= "POST / HTTP/1.1\r\n" @@ -1821,7 +1821,7 @@ ,.chunk_lengths= { 1 } } -#define EMPTY_REASON_PHRASE_AFTER_SPACE 20 +#define EMPTY_REASON_PHRASE_AFTER_SPACE 21 , {.name= "empty reason phrase after space" ,.type= HTTP_RESPONSE ,.raw= "HTTP/1.1 200 \r\n" @@ -1837,7 +1837,7 @@ ,.body= "" } -#define CONTENT_LENGTH_X 21 +#define CONTENT_LENGTH_X 22 , {.name= "Content-Length-X" ,.type= HTTP_RESPONSE ,.raw= "HTTP/1.1 200 OK\r\n" @@ -1863,7 +1863,7 @@ ,.chunk_lengths= { 2 } } -#define HTTP_101_RESPONSE_WITH_UPGRADE_HEADER 22 +#define HTTP_101_RESPONSE_WITH_UPGRADE_HEADER 23 , {.name= "HTTP 101 response with Upgrade header" ,.type= HTTP_RESPONSE ,.raw= "HTTP/1.1 101 Switching Protocols\r\n" @@ -1885,7 +1885,7 @@ } } -#define HTTP_101_RESPONSE_WITH_UPGRADE_HEADER_AND_CONTENT_LENGTH 23 +#define HTTP_101_RESPONSE_WITH_UPGRADE_HEADER_AND_CONTENT_LENGTH 24 , {.name= "HTTP 101 response with Upgrade and Content-Length header" ,.type= HTTP_RESPONSE ,.raw= "HTTP/1.1 101 Switching Protocols\r\n" @@ -1911,7 +1911,7 @@ } } -#define HTTP_101_RESPONSE_WITH_UPGRADE_HEADER_AND_TRANSFER_ENCODING 24 +#define HTTP_101_RESPONSE_WITH_UPGRADE_HEADER_AND_TRANSFER_ENCODING 25 , {.name= "HTTP 101 response with Upgrade and Transfer-Encoding header" ,.type= HTTP_RESPONSE ,.raw= "HTTP/1.1 101 Switching Protocols\r\n" @@ -1944,7 +1944,7 @@ ,.chunk_lengths= { 2, 2 } } -#define HTTP_200_RESPONSE_WITH_UPGRADE_HEADER 25 +#define HTTP_200_RESPONSE_WITH_UPGRADE_HEADER 26 , {.name= "HTTP 200 response with Upgrade header" ,.type= HTTP_RESPONSE ,.raw= "HTTP/1.1 200 OK\r\n" @@ -1967,7 +1967,7 @@ } } -#define HTTP_200_RESPONSE_WITH_UPGRADE_HEADER_AND_CONTENT_LENGTH 26 +#define HTTP_200_RESPONSE_WITH_UPGRADE_HEADER_AND_CONTENT_LENGTH 27 , {.name= "HTTP 200 response with Upgrade and Content-Length header" ,.type= HTTP_RESPONSE ,.raw= "HTTP/1.1 200 OK\r\n" @@ -1992,7 +1992,7 @@ } } -#define HTTP_200_RESPONSE_WITH_UPGRADE_HEADER_AND_TRANSFER_ENCODING 27 +#define HTTP_200_RESPONSE_WITH_UPGRADE_HEADER_AND_TRANSFER_ENCODING 28 , {.name= "HTTP 200 response with Upgrade and Transfer-Encoding header" ,.type= HTTP_RESPONSE ,.raw= "HTTP/1.1 200 OK\r\n" @@ -2023,7 +2023,7 @@ ,.num_chunks_complete= 3 ,.chunk_lengths= { 2, 2 } } -#define HTTP_200_MULTI_TE_NOT_LAST_CHUNKED 28 +#define HTTP_200_MULTI_TE_NOT_LAST_CHUNKED 29 , {.name= "HTTP 200 response with `chunked` being *not last* Transfer-Encoding" ,.type= HTTP_RESPONSE ,.raw= "HTTP/1.1 200 OK\r\n"