From: hno <> Date: Tue, 17 Jul 2001 16:33:28 +0000 (+0000) Subject: Make sure flags is set properly when calling httpBuildRequestHeader X-Git-Tag: SQUID_3_0_PRE1~1463 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f2b4d207572003d90d2519f6393bdb10736c9d7;p=thirdparty%2Fsquid.git Make sure flags is set properly when calling httpBuildRequestHeader (specifically the proxying flag) --- diff --git a/src/ssl.cc b/src/ssl.cc index 8614625f3f..0953e1d841 100644 --- a/src/ssl.cc +++ b/src/ssl.cc @@ -1,6 +1,6 @@ /* - * $Id: ssl.cc,v 1.113 2001/04/14 00:03:23 hno Exp $ + * $Id: ssl.cc,v 1.114 2001/07/17 10:33:28 hno Exp $ * * DEBUG: section 26 Secure Sockets Layer Proxy * AUTHOR: Duane Wessels @@ -532,6 +532,7 @@ sslProxyConnected(int fd, void *data) http_state_flags flags; debug(26, 3) ("sslProxyConnected: FD %d sslState=%p\n", fd, sslState); memset(&flags, '\0', sizeof(flags)); + flags.proxying = sslState->request->flags.proxying; memBufDefInit(&mb); memBufPrintf(&mb, "CONNECT %s HTTP/1.0\r\n", sslState->url); httpBuildRequestHeader(sslState->request, diff --git a/src/tunnel.cc b/src/tunnel.cc index eb04b78bbc..d286e68379 100644 --- a/src/tunnel.cc +++ b/src/tunnel.cc @@ -1,6 +1,6 @@ /* - * $Id: tunnel.cc,v 1.113 2001/04/14 00:03:23 hno Exp $ + * $Id: tunnel.cc,v 1.114 2001/07/17 10:33:28 hno Exp $ * * DEBUG: section 26 Secure Sockets Layer Proxy * AUTHOR: Duane Wessels @@ -532,6 +532,7 @@ sslProxyConnected(int fd, void *data) http_state_flags flags; debug(26, 3) ("sslProxyConnected: FD %d sslState=%p\n", fd, sslState); memset(&flags, '\0', sizeof(flags)); + flags.proxying = sslState->request->flags.proxying; memBufDefInit(&mb); memBufPrintf(&mb, "CONNECT %s HTTP/1.0\r\n", sslState->url); httpBuildRequestHeader(sslState->request,