aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-05-02 20:42:02 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-05-02 20:42:02 +0000
commitf7472075d7d267ef915ad7015e0ac1b97bdf2cc7 (patch)
treed3e776336380bfa7d9579ad77cafa114be885993 /lib
parent9f72db13c4608d57e8232f355e5b96335d2035f6 (diff)
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/transfer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index d9e37b01b..10a3f87dc 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -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;
}
}
}