diff --git a/lib/http.c b/lib/http.c index 9083337c3e275893d1955a33051dd35a150d68f2..76af6f702a719ff07eef17f53dfd25ef0128e643 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 */