aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/url.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index 69a75e310..0ee6fb042 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -4339,9 +4339,8 @@ static char *detect_proxy(struct connectdata *conn)
prox=curl_getenv(proxy_env);
}
- if(prox && *prox) { /* don't count "" strings */
+ if(prox)
proxy = prox; /* use this */
- }
else {
proxy = curl_getenv("all_proxy"); /* default proxy to use */
if(!proxy)