summaryrefslogtreecommitdiffhomepage
path: root/src/test
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-01-15 20:50:20 +0300
committerValentin Bartenev <vbart@nginx.com>2018-01-15 20:50:20 +0300
commit0c38ff0e66908e6e80045b9bf71344830dbd9621 (patch)
tree61c274cfa56f2385c75e54b1cb79f249c6837022 /src/test
parenta073616fc35b76fce4c4cc1b3ad30837a22d5499 (diff)
downloadunit-0c38ff0e66908e6e80045b9bf71344830dbd9621.tar.gz
unit-0c38ff0e66908e6e80045b9bf71344830dbd9621.tar.bz2
Checking for major HTTP version.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/nxt_http_parse_test.c5
1 files changed, 5 insertions, 0 deletions
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
@@ -125,6 +125,11 @@ static nxt_http_parse_test_case_t nxt_http_test_cases[] = {
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,
&nxt_http_parse_test_request_line,