mirror of
https://github.com/curl/curl.git
synced 2026-07-24 11:37:21 +03:00
When setting a proxy with environment variables and (for example) running
'curl [URL]' with a URL without a protocol prefix, curl would not send a correct request as it failed to add the protocol prefix.
This commit is contained in:
parent
cb4a5f5a2b
commit
b2f8de571f
3 changed files with 7 additions and 1 deletions
|
|
@ -2951,7 +2951,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
|
|||
}
|
||||
|
||||
if(proxy && *proxy) {
|
||||
long bits = conn->protocol & (PROT_HTTPS|PROT_SSL);
|
||||
long bits = conn->protocol & (PROT_HTTPS|PROT_SSL|PROT_MISSING);
|
||||
data->change.proxy = proxy;
|
||||
data->change.proxy_alloc=TRUE; /* this needs to be freed later */
|
||||
conn->bits.httpproxy = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue