mirror of
https://github.com/curl/curl.git
synced 2026-08-25 06:33:32 +03: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:
parent
9f72db13c4
commit
f7472075d7
3 changed files with 10 additions and 3 deletions
|
|
@ -766,8 +766,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
|||
if (checkhttpprefix(data, k->p)) {
|
||||
nc = 1;
|
||||
k->httpcode = 200;
|
||||
k->httpversion =
|
||||
(data->set.httpversion==CURL_HTTP_VERSION_1_0)? 10 : 11;
|
||||
k->httpversion = 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue