diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-12-22 07:30:21 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-12-22 07:30:21 +0000 |
commit | b2f8de571fb10f58bc3c8411bb4bbed2aa14dc52 (patch) | |
tree | 4cb049b8e6744fb4f96a517669fc7f195c0be95a /lib | |
parent | cb4a5f5a2b15c5bba5f1caec492b2c3bce8bbcf1 (diff) |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 1 insertions, 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; |