]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2287: Better fix for unsupported HTP version handling
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 15 Jul 2013 13:41:51 +0000 (07:41 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 15 Jul 2013 13:41:51 +0000 (07:41 -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 0e893201900830d7fc4c66543ee316f4da195722..5cf1036a59e8126053ab0befa5f605eded340a2d 100644 (file)
@@ -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();