#include "acl/Checklist.h"
#include "acl/MethodData.h"
#include "cache_cf.h"
-#include "HttpRequestMethod.h"
+#include "http/RequestMethod.h"
int ACLMethodData::ThePurgeCount = 0;
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);
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