Commit ed77fdf3 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa Committed by Daniel Stenberg
Browse files

http2: Don't send Upgrade headers when we already do HTTP/2

parent 08f9c909
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 */