diff options
author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-11-15 00:38:29 +0900 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-11-15 21:00:23 +0100 |
commit | ed77fdf389cb5a45bc7465a6d08955c7edd3a6cd (patch) | |
tree | 975f45765e59f67fcfd3680d2d0b738fc1aba87f | |
parent | 08f9c909813c7b7ed09ff801fb6173d424b473f4 (diff) |
http2: Don't send Upgrade headers when we already do HTTP/2
-rw-r--r-- | lib/http.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/http.c b/lib/http.c index 9083337c3..76af6f702 100644 --- a/lib/http.c +++ b/lib/http.c @@ -2276,6 +2276,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done) return result; if(!(conn->handler->flags&PROTOPT_SSL) && + conn->httpversion != 20 && (data->set.httpversion == CURL_HTTP_VERSION_2_0)) { /* append HTTP2 upgrade magic stuff to the HTTP request if it isn't done over SSL */ |