diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-04-30 11:09:10 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-04-30 11:09:10 +0200 |
commit | 29364d93569859ec49bea43cb988a8f1a6583b5d (patch) | |
tree | 48b5ef5ef81ac577818368fffd33b0e943c8216e | |
parent | 9e8f28a8f1fe90c5e88c18f56f82f6c28f804839 (diff) | |
download | curl-29364d93569859ec49bea43cb988a8f1a6583b5d.tar.gz |
http: mark bundle as not for multiuse on < HTTP/2 response
-rw-r--r-- | lib/http.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/http.c b/lib/http.c index b23739431..76a504b5a 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 |