changeset 5574:cff36d2d7fe6

SPDY: fixed parsing of http version. There is an error while parsing multi-digit minor version numbers (e.g. "HTTP/1.10").
author Xiaochen Wang <wangxiaochen0@gmail.com>
date Tue, 11 Feb 2014 20:54:16 +0800
parents 7c05f6590753
children d15822784cf9
files src/http/ngx_http_spdy.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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_req
 
         ch = *p;
 
+        if (ch == '.') {
+            break;
+        }
+
         if (ch < '0' || ch > '9') {
             return NGX_HTTP_PARSE_INVALID_REQUEST;
         }