public:
AccessLogEntry() : url(NULL) , reply(NULL), request(NULL),
- adapted_request(NULL)
- {}
+ adapted_request(NULL) {}
const char *url;
public:
Headers() : request(NULL),
- adapted_request(NULL),
+ adapted_request(NULL),
#if ICAP_CLIENT
icap(NULL),
char *request; //< virgin HTTP request headers
- char *adapted_request; //< HTTP request headers after adaptation and redirection
+ char *adapted_request; //< HTTP request headers after adaptation and redirection
#if ICAP_CLIENT
} _private;
HierarchyLogEntry hier;
HttpReply *reply;
- HttpRequest *request; //< virgin HTTP request
+ HttpRequest *request; //< virgin HTTP request
HttpRequest *adapted_request; //< HTTP request after adaptation and redirection
mb.init();
packerToMemInit(&p, &mb);
request->header.packInto(&p);
- //This is the request after adaptation or redirection
- aLogEntry->headers.adapted_request = xstrdup(mb.buf);
-
- // the virgin request is saved to aLogEntry->request
- if (aLogEntry->request) {
- packerClean(&p);
- mb.reset();
- packerToMemInit(&p, &mb);
- aLogEntry->request->header.packInto(&p);
- aLogEntry->headers.request = xstrdup(mb.buf);
- }
+ //This is the request after adaptation or redirection
+ aLogEntry->headers.adapted_request = xstrdup(mb.buf);
+
+ // the virgin request is saved to aLogEntry->request
+ if (aLogEntry->request) {
+ packerClean(&p);
+ mb.reset();
+ packerToMemInit(&p, &mb);
+ aLogEntry->request->header.packInto(&p);
+ aLogEntry->headers.request = xstrdup(mb.buf);
+ }
#if ICAP_CLIENT
packerClean(&p);
/*Save the original request for logging purposes*/
if (!calloutContext->http->al.request)
- calloutContext->http->al.request = HTTPMSGLOCK(request);
+ calloutContext->http->al.request = HTTPMSGLOCK(request);
if (!calloutContext->http_access_done) {
debugs(83, 3, HERE << "Doing calloutContext->clientAccessCheck()");