http_proxy: fix user-agent and custom headers for CONNECT with hyper
Enable test 287 Closes #7598
This commit is contained in:
parent
f46b83fc94
commit
059379d20c
@ -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");
|
||||
|
||||
@ -44,7 +44,6 @@
|
||||
262
|
||||
265
|
||||
266
|
||||
287
|
||||
319
|
||||
326
|
||||
357
|
||||
|
||||
Loading…
Reference in New Issue
Block a user