mirror of
https://github.com/nginx/nginx.git
synced 2026-06-26 20:01:45 +00: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
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue