aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_spdy.c
diff options
context:
space:
mode:
authorXiaochen Wang <wangxiaochen0@gmail.com>2014-02-11 20:54:16 +0800
committerXiaochen Wang <wangxiaochen0@gmail.com>2014-02-11 20:54:16 +0800
commitcd358e5a95fb770f30207fffe8e45dbc2bb7e52b (patch)
treee12e6ad9122339abd575df1f35793240de86ccf0 /src/http/ngx_http_spdy.c
parent381d5074677ff2b5eb27ed627d4772f51795f3e2 (diff)
downloadnginx-cd358e5a95fb770f30207fffe8e45dbc2bb7e52b.tar.gz
nginx-cd358e5a95fb770f30207fffe8e45dbc2bb7e52b.zip
SPDY: fixed parsing of http version.
There is an error while parsing multi-digit minor version numbers (e.g. "HTTP/1.10").
Diffstat (limited to 'src/http/ngx_http_spdy.c')
-rw-r--r--src/http/ngx_http_spdy.c4
1 files changed, 4 insertions, 0 deletions
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;
}