From: Daniel Stenberg Date: Tue, 30 Apr 2019 09:09:10 +0000 (+0200) Subject: http: mark bundle as not for multiuse on < HTTP/2 response X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=29364d93569859ec49bea43cb988a8f1a6583b5d;p=thirdparty%2Fcurl.git http: mark bundle as not for multiuse on < HTTP/2 response --- diff --git a/lib/http.c b/lib/http.c index b237394319..76a504b5a7 100644 --- a/lib/http.c +++ b/lib/http.c @@ -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