commit | cd358e5a95fb770f30207fffe8e45dbc2bb7e52b | [log] [tgz] |
---|---|---|
author | Xiaochen Wang <wangxiaochen0@gmail.com> | Tue Feb 11 20:54:16 2014 +0800 |
committer | Xiaochen Wang <wangxiaochen0@gmail.com> | Tue Feb 11 20:54:16 2014 +0800 |
tree | e12e6ad9122339abd575df1f35793240de86ccf0 | |
parent | 381d5074677ff2b5eb27ed627d4772f51795f3e2 [diff] [blame] |
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 20755f4..b5bfe18 100644 --- a/src/http/ngx_http_spdy.c +++ b/src/http/ngx_http_spdy.c
@@ -2794,6 +2794,10 @@ ch = *p; + if (ch == '.') { + break; + } + if (ch < '0' || ch > '9') { return NGX_HTTP_PARSE_INVALID_REQUEST; }