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
5
CHANGES
5
CHANGES
@ -6,6 +6,11 @@
|
|||||||
|
|
||||||
Changelog
|
Changelog
|
||||||
|
|
||||||
|
Daniel (22 December 2006)
|
||||||
|
- 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.
|
||||||
|
|
||||||
Daniel (21 December 2006)
|
Daniel (21 December 2006)
|
||||||
- Robson Braga Araujo reported bug #1618359
|
- Robson Braga Araujo reported bug #1618359
|
||||||
(http://curl.haxx.se/bug/view.cgi?id=1618359) and subsequently provided a
|
(http://curl.haxx.se/bug/view.cgi?id=1618359) and subsequently provided a
|
||||||
|
@ -37,6 +37,7 @@ This release includes the following bugfixes:
|
|||||||
libcurl to leak memory
|
libcurl to leak memory
|
||||||
o no more SIGPIPE when GnuTLS is used
|
o no more SIGPIPE when GnuTLS is used
|
||||||
o FTP downloading 2 zero byte files in a row
|
o FTP downloading 2 zero byte files in a row
|
||||||
|
o using proxy and URLs without protocol prefixes
|
||||||
|
|
||||||
Other curl-related news:
|
Other curl-related news:
|
||||||
|
|
||||||
|
@ -2951,7 +2951,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(proxy && *proxy) {
|
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 = proxy;
|
||||||
data->change.proxy_alloc=TRUE; /* this needs to be freed later */
|
data->change.proxy_alloc=TRUE; /* this needs to be freed later */
|
||||||
conn->bits.httpproxy = TRUE;
|
conn->bits.httpproxy = TRUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user