From: Amos Jeffries Date: Fri, 26 Jul 2013 12:32:07 +0000 (-0600) Subject: Bug 2287: Better fix for unsupported HTTP version handling X-Git-Tag: SQUID_3_3_10~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0178cc3873cd1cc590f88f67e48fe707eea18ab1;p=thirdparty%2Fsquid.git Bug 2287: Better fix for unsupported HTTP version handling RFC 2616 section 10.5.6 is more specifically about MAJOR versions. Remove the criterion limiting 1.x minor version numbers. --- diff --git a/src/client_side.cc b/src/client_side.cc index 905eaae2d6..ff46ad8d8a 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -2609,10 +2609,9 @@ clientProcessRequest(ConnStateData *conn, HttpParser *hp, ClientSocketContext *c goto finish; } - /* RFC 2616 section 10.5.6 : handle unsupported HTTP versions cleanly. */ - /* We currently only accept 0.9, 1.0, 1.1 */ + /* RFC 2616 section 10.5.6 : handle unsupported HTTP major versions cleanly. */ + /* We currently only support 0.9, 1.0, 1.1 properly */ if ( (http_ver.major == 0 && http_ver.minor != 9) || - (http_ver.major == 1 && http_ver.minor > 1 ) || (http_ver.major > 1) ) { clientStreamNode *node = context->getClientReplyContext();