now sends user agent to all requests that go through a http proxy
authorDaniel Stenberg <daniel@haxx.se>
Sat, 8 Apr 2000 19:29:58 +0000 (19:29 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 8 Apr 2000 19:29:58 +0000 (19:29 +0000)
lib/url.c

index 1b1607f..6211f94 100644 (file)
--- 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);
     }