mirror of
https://github.com/curl/curl.git
synced 2026-07-16 04:57:16 +03:00
cf-h1-proxy: no CURLOPT_USERAGENT in CONNECT with hyper
Follow-up to 693cd16793 which was incomplete
Ref #12680
Closes #12697
This commit is contained in:
parent
beb2283746
commit
e186ca6534
1 changed files with 1 additions and 1 deletions
|
|
@ -725,7 +725,7 @@ static CURLcode start_CONNECT(struct Curl_cfilter *cf,
|
|||
}
|
||||
|
||||
if(!Curl_checkProxyheaders(data, conn, STRCONST("User-Agent")) &&
|
||||
data->set.str[STRING_USERAGENT]) {
|
||||
data->set.str[STRING_USERAGENT] && *data->set.str[STRING_USERAGENT]) {
|
||||
struct dynbuf ua;
|
||||
Curl_dyn_init(&ua, DYN_HTTP_REQUEST);
|
||||
result = Curl_dyn_addf(&ua, "User-Agent: %s\r\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue