mirror of
https://github.com/curl/curl.git
synced 2025-04-18 16:30:45 +08:00
cf-h1-proxy: no CURLOPT_USERAGENT in CONNECT with hyper
Follow-up to 693cd1679361828a which was incomplete Ref #12680 Closes #12697
This commit is contained in:
parent
beb2283746
commit
e186ca6534
@ -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…
x
Reference in New Issue
Block a user