diff options
author | Sven Wegener <sven.wegener@stealer.net> | 2011-08-30 20:20:56 +0200 |
---|---|---|
committer | Sven Wegener <sven.wegener@stealer.net> | 2012-10-27 11:55:10 +0200 |
commit | 4c244c8a0c417e6428e54abcd34aa33b6e647f38 (patch) | |
tree | fbaee68020a419f0c038daa90d616e2271ec026c /lib/url.c | |
parent | 74fe1b95fb44053fdbef4b1eb9f550a3da332eda (diff) |
correctly support CURLOPT_HTTPPROXYTUNNEL for httpsfixes
Currently using an HTTP proxy with HTTPS results in unconditional
CONNECT usage, regardless of CURLOPT_HTTPPROXYTUNNEL. This patch
modifies libcurl to only use tunnel mode, when SSL is used and the
protocol is not HTTP. Setting CURLOPT_HTTPPROXYTUNNEL then forces the
use of CONNECT.
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5084,7 +5084,7 @@ static CURLcode create_conn(struct SessionHandle *data, * If the protocol is using SSL and HTTP proxy is used, we set * the tunnel_proxy bit. *************************************************************/ - if((conn->given->flags&PROTOPT_SSL) && conn->bits.httpproxy) + if((conn->given->flags&PROTOPT_SSL) && conn->bits.httpproxy && !(conn->handler->protocol & CURLPROTO_HTTP)) conn->bits.tunnel_proxy = TRUE; /************************************************************* |