]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
c-hyper: avoid duplicated Proxy-Connection headers
authorDaniel Stenberg <daniel@haxx.se>
Mon, 18 Jan 2021 09:35:47 +0000 (10:35 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 19 Jan 2021 10:41:23 +0000 (11:41 +0100)
lib/c-hyper.c

index 5e7a76f808ba76fabba1b1ba1849ebaf248a78cc..14b20be5d14a17c9951e7a2f2aaefbc24a1cf3ce 100644 (file)
@@ -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;