]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Wrap ignore_expect_100 action properly
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 5 Mar 2010 10:33:07 +0000 (23:33 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 5 Mar 2010 10:33:07 +0000 (23:33 +1300)
src/client_side.cc

index ab9d4e3fb4317782c3d80c29592463673662a5e4..f8785fcf8da09cecc3fae104d77084bb58c5bbc8 100644 (file)
@@ -2499,12 +2499,14 @@ clientProcessRequest(ConnStateData *conn, HttpParser *hp, ClientSocketContext *c
 
     if (request->header.has(HDR_EXPECT)) {
         int ignore = 0;
+#if HTTP_VIOLATIONS
         if (Config.onoff.ignore_expect_100) {
             String expect = request->header.getList(HDR_EXPECT);
             if (expect.caseCmp("100-continue") == 0)
                 ignore = 1;
             expect.clean();
         }
+#endif
         if (!ignore) {
             clientStreamNode *node = context->getClientReplyContext();
             clientReplyContext *repContext = dynamic_cast<clientReplyContext *>(node->data.getRaw());