diff options
author | Yang Tse <yangsita@gmail.com> | 2008-09-08 19:34:58 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-09-08 19:34:58 +0000 |
commit | 2ef72f7abb0f955d08a7f26d1a65a21be26b1af9 (patch) | |
tree | 22b8d1aaea77650ea5aa901d953f805b46746aab /lib/http.c | |
parent | eae27d178829e0a2529c6e51a1b9b7acb08f7d14 (diff) | |
download | curl-2ef72f7abb0f955d08a7f26d1a65a21be26b1af9.tar.gz |
fix compiler warning
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c index e223c1f92..b57d9b592 100644 --- a/lib/http.c +++ b/lib/http.c @@ -1958,11 +1958,11 @@ handle this request only supports 1.0. */ static bool use_http_1_1(const struct SessionHandle *data, const struct connectdata *conn) { - return (data->set.httpversion == CURL_HTTP_VERSION_1_1) || + return (bool)((data->set.httpversion == CURL_HTTP_VERSION_1_1) || ((data->set.httpversion != CURL_HTTP_VERSION_1_0) && ((conn->httpversion == 11) || ((conn->httpversion != 10) && - (data->state.httpversion != 10)))); + (data->state.httpversion != 10))))); } /* check and possibly add an Expect: header */ |