1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-24 17:18:48 -05:00

detect_proxy: only show proxy use if it had contents

This commit is contained in:
Daniel Stenberg 2018-04-19 14:59:06 +02:00
parent 6d3c9c8ab4
commit 5c8521851f
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -2682,6 +2682,7 @@ static char *detect_proxy(struct connectdata *conn)
proxy = curl_getenv(envp); proxy = curl_getenv(envp);
} }
} }
if(proxy)
infof(conn->data, "Uses proxy env variable %s == '%s'\n", envp, proxy); infof(conn->data, "Uses proxy env variable %s == '%s'\n", envp, proxy);
return proxy; return proxy;