]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix build errors after trunk merge
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 6 May 2014 15:30:17 +0000 (08:30 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 6 May 2014 15:30:17 +0000 (08:30 -0700)
src/acl/MethodData.cc
src/client_side.cc

index 6fad15ef9012f7f0f827c55acf0f33fafac0bad8..495e89c8221405655c16d7c91c222094be07b657 100644 (file)
@@ -36,7 +36,7 @@
 #include "acl/Checklist.h"
 #include "acl/MethodData.h"
 #include "cache_cf.h"
-#include "HttpRequestMethod.h"
+#include "http/RequestMethod.h"
 
 int ACLMethodData::ThePurgeCount = 0;
 
index 6f4b9cb580ce5f0a105fab5c8dde20c45535df83..a4de94b37663b47df9d85d0a6a4eb5ad91e6a405 100644 (file)
@@ -2542,10 +2542,10 @@ clientProcessRequest(ConnStateData *conn, Http1::RequestParser &hp, ClientSocket
             break;
         case Http::scHttpVersionNotSupported:
             repContext->setReplyToError(ERR_UNSUP_HTTPVERSION, Http::scHttpVersionNotSupported, method, http->uri,
-                                        conn->clientConnection->remote, NULL, conn->in.buf, NULL);
+                                        conn->clientConnection->remote, NULL, conn->in.buf.c_str(), NULL);
             break;
         default:
-            repContext->setReplyToError(ERR_INVALID_REQ, hp->request_parse_status, method, http->uri,
+            repContext->setReplyToError(ERR_INVALID_REQ, hp.request_parse_status, method, http->uri,
                                         conn->clientConnection->remote, NULL, conn->in.buf.c_str(), NULL);
         }
         assert(context->http->out.offset == 0);
@@ -2713,10 +2713,6 @@ clientProcessRequest(ConnStateData *conn, Http1::RequestParser &hp, ClientSocket
     if (http->request->method == Http::METHOD_CONNECT) {
         context->mayUseConnection(true);
         conn->flags.readMore = false;
-
-        // consume header early so that tunnel gets just the body
-        connNoteUseOfBuffer(conn, http->req_sz);
-        notedUseOfBuffer = true;
     }
 
 #if USE_OPENSSL