# HG changeset patch # User Xiaochen Wang # Date 1392123256 -28800 # Node ID cff36d2d7fe6db1baa9d44ed30ebd26b20c05d06 # Parent 7c05f65907538b2e08c4b65562ac1212c966fe30 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 --- 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; }