diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-11-19 22:00:14 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-11-19 22:00:14 +0000 |
commit | 40e8b4e5277c7ad726b50ec904fa573b656184b3 (patch) | |
tree | d04b13689e81f14be5d1ae29050822eaa0d1cf57 /lib | |
parent | 4741e64c89346383c4d56a170cfeb53f0898694d (diff) |
- I removed the default use of "Pragma: no-cache" from libcurl when a proxy is
used. It has been used since forever but it was never a good idea to use
unless explicitly asked for.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/http.c b/lib/http.c index 1b20c37e7..70bf61e39 100644 --- a/lib/http.c +++ b/lib/http.c @@ -2290,11 +2290,6 @@ CURLcode Curl_http(struct connectdata *conn, bool *done) } - http->p_pragma = - (!checkheaders(data, "Pragma:") && - (conn->bits.httpproxy && !conn->bits.tunnel_proxy) )? - "Pragma: no-cache\r\n":NULL; - http->p_accept = checkheaders(data, "Accept:")?NULL:"Accept: */*\r\n"; if(( (HTTPREQ_POST == httpreq) || @@ -2440,7 +2435,6 @@ CURLcode Curl_http(struct connectdata *conn, bool *done) "%s" /* range */ "%s" /* user agent */ "%s" /* host */ - "%s" /* pragma */ "%s" /* accept */ "%s" /* accept-encoding */ "%s" /* referer */ @@ -2460,7 +2454,6 @@ CURLcode Curl_http(struct connectdata *conn, bool *done) *data->set.str[STRING_USERAGENT] && conn->allocptr.uagent)? conn->allocptr.uagent:"", (conn->allocptr.host?conn->allocptr.host:""), /* Host: host */ - http->p_pragma?http->p_pragma:"", http->p_accept?http->p_accept:"", (data->set.str[STRING_ENCODING] && *data->set.str[STRING_ENCODING] && |