]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Make sure flags is set properly when calling httpBuildRequestHeader
authorhno <>
Tue, 17 Jul 2001 16:33:28 +0000 (16:33 +0000)
committerhno <>
Tue, 17 Jul 2001 16:33:28 +0000 (16:33 +0000)
(specifically the proxying flag)

src/ssl.cc
src/tunnel.cc

index 8614625f3fe657eedf9c6dc11dd6bfc94bc3d579..0953e1d841a3378c5acde1955349548d43f6dc60 100644 (file)
@@ -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,
index eb04b78bbc10cc824850fa45f5c0bedd41f8fc3c..d286e68379d253f8d4b9b3a3adfb08047e603ba5 100644 (file)
@@ -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,