Skip to content
Snippets Groups Projects
Commit 75cd7f48 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

now sends user agent to all requests that go through a http proxy

parent eb856b04
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment