aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-04-08 19:29:58 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-04-08 19:29:58 +0000
commit75cd7f482d9cebe0169c8a8b82203d2d7cf65a9f (patch)
tree37a19a49d688e5c57fb51970dbd6d422bf3b84aa
parenteb856b04fee26345ea0c2addb19c3d97a847e931 (diff)
now sends user agent to all requests that go through a http proxy
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 1b1607fd1..6211f9470 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1109,7 +1109,7 @@ static UrgError _urlget(struct UrlData *data)
data->ptr_proxyuserpwd = maprintf("Proxy-authorization: Basic %s\015\012",
authorization);
}
- if(data->conf & (CONF_HTTPS|CONF_HTTP)) {
+ if(data->conf & (CONF_HTTPS|CONF_HTTP|CONF_PROXY)) {
if(data->useragent) {
data->ptr_uagent = maprintf("User-Agent: %s\015\012", data->useragent);
}