- 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:
5
CHANGES
5
CHANGES
@@ -6,6 +6,11 @@
|
|||||||
|
|
||||||
Changelog
|
Changelog
|
||||||
|
|
||||||
|
Daniel S (15 Feb 2008)
|
||||||
|
- 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!
|
||||||
|
|
||||||
Daniel S (11 Feb 2008)
|
Daniel S (11 Feb 2008)
|
||||||
- Yang Tse pointed out a few remaining quirks from my timeout refactoring from
|
- Yang Tse pointed out a few remaining quirks from my timeout refactoring from
|
||||||
Feb 7 that didn't abort properly on timeouts. These are actually old
|
Feb 7 that didn't abort properly on timeouts. These are actually old
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ This release includes the following bugfixes:
|
|||||||
o improved strdup replacement
|
o improved strdup replacement
|
||||||
o GnuTLS-built libcurl failed when doing global cleanup and reinit
|
o GnuTLS-built libcurl failed when doing global cleanup and reinit
|
||||||
o error message problem when unable to resolve a host on Windows
|
o error message problem when unable to resolve a host on Windows
|
||||||
|
o Accept: header replacing
|
||||||
|
|
||||||
This release includes the following known bugs:
|
This release includes the following known bugs:
|
||||||
|
|
||||||
@@ -36,6 +37,6 @@ This release would not have looked like this without help, code, reports and
|
|||||||
advice from friends like these:
|
advice from friends like these:
|
||||||
|
|
||||||
Michal Marek, Dmitry Kurochkin, Niklas Angebrand, G<>nter Knauf, Yang Tse,
|
Michal Marek, Dmitry Kurochkin, Niklas Angebrand, G<>nter Knauf, Yang Tse,
|
||||||
Dan Fandrich, Mike Hommey
|
Dan Fandrich, Mike Hommey, Pooyan McSporran
|
||||||
|
|
||||||
Thanks! (and sorry if I forgot to mention someone)
|
Thanks! (and sorry if I forgot to mention someone)
|
||||||
|
|||||||
@@ -2182,8 +2182,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
|
|||||||
(conn->bits.httpproxy && !conn->bits.tunnel_proxy) )?
|
(conn->bits.httpproxy && !conn->bits.tunnel_proxy) )?
|
||||||
"Pragma: no-cache\r\n":NULL;
|
"Pragma: no-cache\r\n":NULL;
|
||||||
|
|
||||||
if(!checkheaders(data, "Accept:"))
|
http->p_accept = checkheaders(data, "Accept:")?NULL:"Accept: */*\r\n";
|
||||||
http->p_accept = "Accept: */*\r\n";
|
|
||||||
|
|
||||||
if(( (HTTPREQ_POST == httpreq) ||
|
if(( (HTTPREQ_POST == httpreq) ||
|
||||||
(HTTPREQ_POST_FORM == httpreq) ||
|
(HTTPREQ_POST_FORM == httpreq) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user