]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2287: Better fix for unsupported HTTP version handling
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 26 Jul 2013 12:32:07 +0000 (06:32 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 26 Jul 2013 12:32:07 +0000 (06:32 -0600)
RFC 2616 section 10.5.6 is more specifically about MAJOR versions.
Remove the criterion limiting 1.x minor version numbers.

src/client_side.cc

index 905eaae2d6ea42c0cf14167ad363205c9bdab1a6..ff46ad8d8a7e704dbb872b6300e0ced141496078 100644 (file)
@@ -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();