]> granicus.if.org Git - curl/commitdiff
http: mark bundle as not for multiuse on < HTTP/2 response
authorDaniel Stenberg <daniel@haxx.se>
Tue, 30 Apr 2019 09:09:10 +0000 (11:09 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 1 May 2019 20:51:23 +0000 (22:51 +0200)
Fixes #3813
Closes #3815

lib/http.c

index b2373943197d1983eec4b29ab0e82d9dc20100f9..76a504b5a755ee18afbb22b38b43c2415d3334a3 100644 (file)
@@ -3630,6 +3630,10 @@ CURLcode Curl_http_readwrite_headers(struct Curl_easy *data,
             if(conn->httpversion != 20)
               infof(data, "Lying server, not serving HTTP/2\n");
           }
+          if(conn->httpversion < 20) {
+            conn->bundle->multiuse = BUNDLE_NO_MULTIUSE;
+            infof(data, "Mark bundle as not supporting multiuse\n");
+          }
         }
         else if(!nc) {
           /* this is the real world, not a Nirvana