From: wessels <> Date: Wed, 17 Apr 1996 00:30:45 +0000 (+0000) Subject: fix printing method in proxyhttpStart() where there is no request structure X-Git-Tag: SQUID_3_0_PRE1~6146 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=efbb0a2562674f122036babab1c7c6abcf575044;p=thirdparty%2Fsquid.git fix printing method in proxyhttpStart() where there is no request structure passed in --- diff --git a/src/http.cc b/src/http.cc index 9676926d3b..cdb1105090 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,4 +1,4 @@ -/* $Id: http.cc,v 1.51 1996/04/16 16:35:28 wessels Exp $ */ +/* $Id: http.cc,v 1.52 1996/04/16 18:30:45 wessels Exp $ */ /* * DEBUG: Section 11 http: HTTP @@ -513,7 +513,7 @@ int proxyhttpStart(e, url, entry) request_t *request = NULL; debug(11, 3, "proxyhttpStart: \"%s %s\"\n", - RequestMethodStr[request->method], url); + RequestMethodStr[entry->method], url); debug(11, 10, "proxyhttpStart: HTTP request header:\n%s\n", entry->mem_obj->mime_hdr); @@ -524,6 +524,7 @@ int proxyhttpStart(e, url, entry) data->free_request = 1; data->REQ = request; + request->method = entry->method; strncpy(request->host, e->host, SQUIDHOSTNAMELEN); request->port = e->ascii_port; strncpy(request->urlpath, url, MAX_URL);