HTTP parser: saving unsupported version.

This is useful for log purposes.
This commit is contained in:
Valentin Bartenev
2018-04-10 16:51:22 +03:00
parent b1b9c78362
commit 8d697e8004

View File

@@ -461,6 +461,7 @@ space_after_target:
&& ver.s.point == '.' && ver.s.point == '.'
&& ver.s.minor >= '0' && ver.s.minor <= '9') && ver.s.minor >= '0' && ver.s.minor <= '9')
{ {
rp->version.ui64 = ver.ui64;
return NXT_HTTP_PARSE_UNSUPPORTED_VERSION; return NXT_HTTP_PARSE_UNSUPPORTED_VERSION;
} }