HTTP parser: fixed parsing of field values ending with space.

This closes #82 issue on GitHub.
This commit is contained in:
Valentin Bartenev
2018-03-15 20:52:39 +03:00
parent f81fa2a921
commit 5a003df1fe
2 changed files with 16 additions and 8 deletions

View File

@@ -226,6 +226,12 @@ static nxt_http_parse_test_case_t nxt_http_test_cases[] = {
NXT_DONE,
NULL, { NULL }
},
{
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"),