mirror of
https://github.com/curl/curl.git
synced 2026-07-27 10:07:15 +03:00
Toshiyuki Maezawa fixed a problem where you couldn't override the
Proxy-Connection: header when using a proxy and not doing CONNECT.
This commit is contained in:
parent
55138753c6
commit
8bed45340a
3 changed files with 9 additions and 2 deletions
|
|
@ -1970,7 +1970,9 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
|
|||
(data->set.encoding && *data->set.encoding && conn->allocptr.accept_encoding)?
|
||||
conn->allocptr.accept_encoding:"",
|
||||
(data->change.referer && conn->allocptr.ref)?conn->allocptr.ref:"" /* Referer: <data> */,
|
||||
(conn->bits.httpproxy && !conn->bits.tunnel_proxy)?
|
||||
(conn->bits.httpproxy &&
|
||||
!conn->bits.tunnel_proxy &&
|
||||
!checkheaders(data, "Proxy-Connection:"))?
|
||||
"Proxy-Connection: Keep-Alive\r\n":"",
|
||||
te
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue