diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-07-04 12:01:59 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-07-04 12:01:59 +0000 |
commit | 8bed45340a48585bbd91e508f1ac44f5ed5bf178 (patch) | |
tree | c083b12a1e8132c2573af2f514ad6b67eda4806a /lib | |
parent | 55138753c63cb7a6d1191028df25b689b73baefa (diff) |
Toshiyuki Maezawa fixed a problem where you couldn't override the
Proxy-Connection: header when using a proxy and not doing CONNECT.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c index b1995e61e..ac2a9cf3d 100644 --- a/lib/http.c +++ b/lib/http.c @@ -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 ); |