Checking for major HTTP version.
This commit is contained in:
@@ -124,6 +124,11 @@ static nxt_http_parse_test_case_t nxt_http_test_cases[] = {
|
||||
NXT_HTTP_PARSE_INVALID,
|
||||
NULL, { NULL }
|
||||
},
|
||||
{
|
||||
nxt_string("GET / HTTP/2.0\r\n"),
|
||||
NXT_HTTP_PARSE_UNSUPPORTED_VERSION,
|
||||
NULL, { NULL }
|
||||
},
|
||||
{
|
||||
nxt_string("GET /. HTTP/1.0\r\n\r\n"),
|
||||
NXT_DONE,
|
||||
|
||||
Reference in New Issue
Block a user