mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:41:41 +03:00
now sends user agent to all requests that go through a http proxy
This commit is contained in:
parent
eb856b04fe
commit
75cd7f482d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue