From: Amos Jeffries Date: Mon, 15 Jul 2013 13:41:51 +0000 (-0600) Subject: Bug 2287: Better fix for unsupported HTP version handling X-Git-Tag: SQUID_3_4_0_1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbf061a77a96882d635eb26649ab6022952fa1ee;p=thirdparty%2Fsquid.git Bug 2287: Better fix for unsupported HTP 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 0e89320190..5cf1036a59 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -2700,10 +2700,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();