diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-03-15 20:52:39 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-03-15 20:52:39 +0300 |
commit | 5a003df1fedc45ba091e947a9d7b7f2351d6edb6 (patch) | |
tree | 80e7bbb8b07fbf2067636beeb9b0616a86ca825a /src/test | |
parent | f81fa2a921c56a8dba42b39dd65efc5fb3abb2d1 (diff) | |
download | unit-5a003df1fedc45ba091e947a9d7b7f2351d6edb6.tar.gz unit-5a003df1fedc45ba091e947a9d7b7f2351d6edb6.tar.bz2 |
HTTP parser: fixed parsing of field values ending with space.
This closes #82 issue on GitHub.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/nxt_http_parse_test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/nxt_http_parse_test.c b/src/test/nxt_http_parse_test.c index adf35168..d00fc1af 100644 --- a/src/test/nxt_http_parse_test.c +++ b/src/test/nxt_http_parse_test.c @@ -228,6 +228,12 @@ static nxt_http_parse_test_case_t nxt_http_test_cases[] = { }, { nxt_string("GET / HTTP/1.1\r\n" + "Host:example.com \r\n\r\n"), + NXT_DONE, + NULL, { NULL } + }, + { + nxt_string("GET / HTTP/1.1\r\n" "Host:\r\n\r\n"), NXT_DONE, NULL, { NULL } |