From: Daniel Stenberg Date: Sun, 17 Jan 2021 17:20:06 +0000 (+0100) Subject: http: make providing Proxy-Connection header not cause duplicated headers X-Git-Tag: curl-7_75_0~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea6ce0afade4d74d32512fd17c9940e3a1322bea;p=thirdparty%2Fcurl.git http: make providing Proxy-Connection header not cause duplicated headers Fixes test 1180 Bug: https://curl.se/mail/lib-2021-01/0095.html Reported-by: Fabian Keil Closes #6472 --- diff --git a/lib/http.c b/lib/http.c index 993dc61af2..520ac1070b 100644 --- a/lib/http.c +++ b/lib/http.c @@ -3123,6 +3123,7 @@ CURLcode Curl_http(struct Curl_easy *data, bool *done) #ifndef CURL_DISABLE_PROXY (conn->bits.httpproxy && !conn->bits.tunnel_proxy && + !Curl_checkheaders(data, "Proxy-Connection") && !Curl_checkProxyheaders(data, conn, "Proxy-Connection"))? "Proxy-Connection: Keep-Alive\r\n":"", #else