aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-02-15 08:56:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-02-15 08:56:06 +0000
commitd25aab2704f1dcc92ae913e4ad38dd1da2b205a2 (patch)
tree3a5ef52b3383b25f30771591ca0e6b1f5563b490 /lib
parentcfaf88aab4a2631a3b2e2097e44c45b9c685916f (diff)
- Pooyan McSporran found and fixed a flaw where you first would do a normal
http request and then you'd reuse the handle and replace the Accept: header, as then libcurl would send two Accept: headers!
Diffstat (limited to 'lib')
-rw-r--r--lib/http.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c
index 4d42635e2..08c2ea88f 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -2182,8 +2182,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
(conn->bits.httpproxy && !conn->bits.tunnel_proxy) )?
"Pragma: no-cache\r\n":NULL;
- if(!checkheaders(data, "Accept:"))
- http->p_accept = "Accept: */*\r\n";
+ http->p_accept = checkheaders(data, "Accept:")?NULL:"Accept: */*\r\n";
if(( (HTTPREQ_POST == httpreq) ||
(HTTPREQ_POST_FORM == httpreq) ||