From 0c38ff0e66908e6e80045b9bf71344830dbd9621 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Mon, 15 Jan 2018 20:50:20 +0300 Subject: Checking for major HTTP version. --- src/test/nxt_http_parse_test.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/test/nxt_http_parse_test.c') diff --git a/src/test/nxt_http_parse_test.c b/src/test/nxt_http_parse_test.c index 637e9298..3da10766 100644 --- a/src/test/nxt_http_parse_test.c +++ b/src/test/nxt_http_parse_test.c @@ -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, -- cgit