mirror of
https://github.com/nginx/nginx.git
synced 2025-06-08 02:02:38 +08:00
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:
parent
381d507467
commit
cd358e5a95
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user