diff options
Diffstat (limited to 'lib/http_proxy.c')
-rw-r--r-- | lib/http_proxy.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/http_proxy.c b/lib/http_proxy.c index a0168cbf5..9ce5ee848 100644 --- a/lib/http_proxy.c +++ b/lib/http_proxy.c @@ -840,9 +840,8 @@ static CURLcode CONNECT(struct Curl_easy *data, Curl_hyper_header(data, headers, data->state.aptr.proxyuserpwd)) goto error; - if(data->set.str[STRING_USERAGENT] && - *data->set.str[STRING_USERAGENT] && - data->state.aptr.uagent && + if(!Curl_checkProxyheaders(data, conn, "User-Agent") && + data->set.str[STRING_USERAGENT] && Curl_hyper_header(data, headers, data->state.aptr.uagent)) goto error; @@ -850,6 +849,9 @@ static CURLcode CONNECT(struct Curl_easy *data, Curl_hyper_header(data, headers, "Proxy-Connection: Keep-Alive")) goto error; + if(Curl_add_custom_headers(data, TRUE, headers)) + goto error; + sendtask = hyper_clientconn_send(client, req); if(!sendtask) { failf(data, "hyper_clientconn_send"); |