From: Xiaochen Wang Date: Tue, 11 Feb 2014 12:54:16 +0000 (+0800) Subject: SPDY: fixed parsing of http version. X-Git-Tag: release-1.5.11~17 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=cd358e5a95fb770f30207fffe8e45dbc2bb7e52b;p=nginx.git SPDY: fixed parsing of http version. There is an error while parsing multi-digit minor version numbers (e.g. "HTTP/1.10"). --- diff --git a/src/http/ngx_http_spdy.c b/src/http/ngx_http_spdy.c index 20755f490..b5bfe1860 100644 --- a/src/http/ngx_http_spdy.c +++ b/src/http/ngx_http_spdy.c @@ -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; }