From b2f8de571fb10f58bc3c8411bb4bbed2aa14dc52 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 22 Dec 2006 07:30:21 +0000 Subject: 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. --- lib/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/url.c') diff --git a/lib/url.c b/lib/url.c index 7b87a92c4..65ec4f1e2 100644 --- a/lib/url.c +++ b/lib/url.c @@ -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; -- cgit v1.2.3