1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Anders Gustafsson remarked that requiring CURLOPT_HTTP_VERSION set to 1.0

when CURLOPT_HTTP200ALIASES is used to avoid the problem mentioned below is
not very nice if the client wants to be able to use _either_ a HTTP 1.1
server or one within the aliases list... so starting now, libcurl will
simply consider 200-alias matches the to be HTTP 1.0 compliant.
This commit is contained in:
Daniel Stenberg 2007-05-02 20:42:02 +00:00
parent 9f72db13c4
commit f7472075d7
3 changed files with 10 additions and 3 deletions

View File

@ -7,6 +7,12 @@
Changelog Changelog
Daniel S (2 May 2007) Daniel S (2 May 2007)
- Anders Gustafsson remarked that requiring CURLOPT_HTTP_VERSION set to 1.0
when CURLOPT_HTTP200ALIASES is used to avoid the problem mentioned below is
not very nice if the client wants to be able to use _either_ a HTTP 1.1
server or one within the aliases list... so starting now, libcurl will
simply consider 200-alias matches the to be HTTP 1.0 compliant.
- Tobias Rundström reported a problem they experienced with xmms2 and recent - Tobias Rundström reported a problem they experienced with xmms2 and recent
libcurls, which turned out to be the 25-nov-2006 change which treats HTTP libcurls, which turned out to be the 25-nov-2006 change which treats HTTP
responses without Content-Length or chunked encoding as without bodies. We responses without Content-Length or chunked encoding as without bodies. We

View File

@ -14,6 +14,7 @@ This release includes the following changes:
o added curl_multi_socket_action() o added curl_multi_socket_action()
o deprecated curl_multi_socket() o deprecated curl_multi_socket()
o uses less memory in non-pipelined use cases o uses less memory in non-pipelined use cases
o CURLOPT_HTTP200ALIASES matched transfers assume HTTP 1.0 compliance
This release includes the following bugfixes: This release includes the following bugfixes:
@ -59,6 +60,7 @@ advice from friends like these:
Song Ma, Dan Fandrich, Yang Tse, Jay Austin, Robert Iakobashvil, Song Ma, Dan Fandrich, Yang Tse, Jay Austin, Robert Iakobashvil,
James Housley, Daniel Black, Steve Little, Sonia Subramanian, Peter O'Gorman, James Housley, Daniel Black, Steve Little, Sonia Subramanian, Peter O'Gorman,
Frank Hempel, Michael Wallner, Jeff Pohlmeyer, Tobias Rundström Frank Hempel, Michael Wallner, Jeff Pohlmeyer, Tobias Rundström,
Anders Gustafsson
Thanks! (and sorry if I forgot to mention someone) Thanks! (and sorry if I forgot to mention someone)

View File

@ -766,8 +766,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
if (checkhttpprefix(data, k->p)) { if (checkhttpprefix(data, k->p)) {
nc = 1; nc = 1;
k->httpcode = 200; k->httpcode = 200;
k->httpversion = k->httpversion = 10;
(data->set.httpversion==CURL_HTTP_VERSION_1_0)? 10 : 11;
} }
} }
} }