diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-01-15 20:50:20 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-01-15 20:50:20 +0300 |
commit | 0c38ff0e66908e6e80045b9bf71344830dbd9621 (patch) | |
tree | 61c274cfa56f2385c75e54b1cb79f249c6837022 /src/test | |
parent | a073616fc35b76fce4c4cc1b3ad30837a22d5499 (diff) | |
download | unit-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.c | 5 |
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, |