mirror of
https://github.com/curl/curl.git
synced 2026-08-25 18:03:36 +03:00
- 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!
This commit is contained in:
parent
cfaf88aab4
commit
d25aab2704
3 changed files with 8 additions and 3 deletions
|
|
@ -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) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue