From: Tatsuhiro Tsujikawa Date: Fri, 14 Nov 2014 15:38:29 +0000 (+0900) Subject: http2: Don't send Upgrade headers when we already do HTTP/2 X-Git-Tag: curl-7_40_0~364 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed77fdf389cb5a45bc7465a6d08955c7edd3a6cd;p=curl http2: Don't send Upgrade headers when we already do HTTP/2 --- 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 */