summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_parse.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-04-10 16:51:22 +0300
committerValentin Bartenev <vbart@nginx.com>2018-04-10 16:51:22 +0300
commit8d697e8004c7c73139f1055e15f9860dd2d1b165 (patch)
tree2fe4c7d4721b32fe575c5f6e38fe8e56bfdd0b72 /src/nxt_http_parse.c
parentb1b9c78362629d42f44d718b9a1d5ef3e1eaf308 (diff)
downloadunit-8d697e8004c7c73139f1055e15f9860dd2d1b165.tar.gz
unit-8d697e8004c7c73139f1055e15f9860dd2d1b165.tar.bz2
HTTP parser: saving unsupported version.
This is useful for log purposes.
Diffstat (limited to 'src/nxt_http_parse.c')
-rw-r--r--src/nxt_http_parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_http_parse.c b/src/nxt_http_parse.c
index dd86c44f..c0945faf 100644
--- a/src/nxt_http_parse.c
+++ b/src/nxt_http_parse.c
@@ -461,6 +461,7 @@ space_after_target:
&& ver.s.point == '.'
&& ver.s.minor >= '0' && ver.s.minor <= '9')
{
+ rp->version.ui64 = ver.ui64;
return NXT_HTTP_PARSE_UNSUPPORTED_VERSION;
}