]> granicus.if.org Git - curl/commitdiff
http2: Don't send Upgrade headers when we already do HTTP/2
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Fri, 14 Nov 2014 15:38:29 +0000 (00:38 +0900)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 15 Nov 2014 20:00:23 +0000 (21:00 +0100)
lib/http.c

index 9083337c3e275893d1955a33051dd35a150d68f2..76af6f702a719ff07eef17f53dfd25ef0128e643 100644 (file)
@@ -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 */