summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-01-18 10:35:47 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-19 11:41:23 +0100
commit3acf6fe53928bc8be68e24d7e192f3eca1f34865 (patch)
tree4eff04f19357d85bea1560e67a06a80c1eaf2378
parentea6ce0afade4d74d32512fd17c9940e3a1322bea (diff)
downloadcurl-3acf6fe53928bc8be68e24d7e192f3eca1f34865.tar.gz
c-hyper: avoid duplicated Proxy-Connection headers
-rw-r--r--lib/c-hyper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/c-hyper.c b/lib/c-hyper.c
index 5e7a76f80..14b20be5d 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;