summaryrefslogtreecommitdiffhomepage
path: root/src/test
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-03-15 20:52:39 +0300
committerValentin Bartenev <vbart@nginx.com>2018-03-15 20:52:39 +0300
commit5a003df1fedc45ba091e947a9d7b7f2351d6edb6 (patch)
tree80e7bbb8b07fbf2067636beeb9b0616a86ca825a /src/test
parentf81fa2a921c56a8dba42b39dd65efc5fb3abb2d1 (diff)
downloadunit-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.c6
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 }