now sends user agent to all requests that go through a http proxy
This commit is contained in:
@@ -1109,7 +1109,7 @@ static UrgError _urlget(struct UrlData *data)
|
|||||||
data->ptr_proxyuserpwd = maprintf("Proxy-authorization: Basic %s\015\012",
|
data->ptr_proxyuserpwd = maprintf("Proxy-authorization: Basic %s\015\012",
|
||||||
authorization);
|
authorization);
|
||||||
}
|
}
|
||||||
if(data->conf & (CONF_HTTPS|CONF_HTTP)) {
|
if(data->conf & (CONF_HTTPS|CONF_HTTP|CONF_PROXY)) {
|
||||||
if(data->useragent) {
|
if(data->useragent) {
|
||||||
data->ptr_uagent = maprintf("User-Agent: %s\015\012", data->useragent);
|
data->ptr_uagent = maprintf("User-Agent: %s\015\012", data->useragent);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user