1
0
mirror of https://github.com/moparisthebest/curl synced 2025-01-10 21:48:10 -05:00

c-hyper: avoid duplicated Proxy-Connection headers

This commit is contained in:
Daniel Stenberg 2021-01-18 10:35:47 +01:00
parent ea6ce0afad
commit 3acf6fe539
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -800,6 +800,7 @@ CURLcode Curl_http(struct Curl_easy *data, bool *done)
#ifndef CURL_DISABLE_PROXY #ifndef CURL_DISABLE_PROXY
if(conn->bits.httpproxy && !conn->bits.tunnel_proxy && if(conn->bits.httpproxy && !conn->bits.tunnel_proxy &&
!Curl_checkheaders(data, "Proxy-Connection") &&
!Curl_checkProxyheaders(data, conn, "Proxy-Connection")) { !Curl_checkProxyheaders(data, conn, "Proxy-Connection")) {
if(Curl_hyper_header(data, headers, "Proxy-Connection: Keep-Alive")) if(Curl_hyper_header(data, headers, "Proxy-Connection: Keep-Alive"))
goto error; goto error;