SPDY: fixed parsing of http version.

There is an error while parsing multi-digit minor version numbers (e.g.
"HTTP/1.10").
This commit is contained in:
Xiaochen Wang 2014-02-11 20:54:16 +08:00
parent 381d507467
commit cd358e5a95

View File

@ -2794,6 +2794,10 @@ ngx_http_spdy_parse_version(ngx_http_request_t *r)
ch = *p;
if (ch == '.') {
break;
}
if (ch < '0' || ch > '9') {
return NGX_HTTP_PARSE_INVALID_REQUEST;
}