http: mark bundle as not for multiuse on < HTTP/2 response

Fixes #3813
Closes #3815
This commit is contained in:
Daniel Stenberg 2019-04-30 11:09:10 +02:00
parent b45fd8938e
commit c32248f17d
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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