mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:43:35 +03:00
Dmitry Kurochkin mentioned a flaw
(http://curl.haxx.se/mail/lib-2007-12/0252.html) in detect_proxy() which failed to set the bits.proxy variable properly when an environment variable told libcurl to use a http proxy.
This commit is contained in:
parent
f277124a0f
commit
04e4d9a0b3
3 changed files with 10 additions and 2 deletions
|
|
@ -3242,7 +3242,7 @@ static char *detect_proxy(struct connectdata *conn)
|
|||
if(conn->proxytype == CURLPROXY_HTTP) {
|
||||
/* force this connection's protocol to become HTTP */
|
||||
conn->protocol = PROT_HTTP | bits;
|
||||
conn->bits.httpproxy = TRUE;
|
||||
conn->bits.proxy = conn->bits.httpproxy = TRUE;
|
||||
}
|
||||
}
|
||||
} /* if(!nope) - it wasn't specified non-proxy */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue