From: Daniel Stenberg Date: Mon, 18 Jan 2021 09:35:47 +0000 (+0100) Subject: c-hyper: avoid duplicated Proxy-Connection headers X-Git-Tag: curl-7_75_0~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3acf6fe53928bc8be68e24d7e192f3eca1f34865;p=thirdparty%2Fcurl.git c-hyper: avoid duplicated Proxy-Connection headers --- diff --git a/lib/c-hyper.c b/lib/c-hyper.c index 5e7a76f808..14b20be5d1 100644 --- a/lib/c-hyper.c +++ b/lib/c-hyper.c @@ -800,6 +800,7 @@ CURLcode Curl_http(struct Curl_easy *data, bool *done) #ifndef CURL_DISABLE_PROXY if(conn->bits.httpproxy && !conn->bits.tunnel_proxy && + !Curl_checkheaders(data, "Proxy-Connection") && !Curl_checkProxyheaders(data, conn, "Proxy-Connection")) { if(Curl_hyper_header(data, headers, "Proxy-Connection: Keep-Alive")) goto error;