mirror of
https://github.com/curl/curl.git
synced 2026-07-23 17:37:17 +03:00
http2: only do the *done() cleanups for HTTP
Follow-up to ef86daf4d3
Closes #5650
Fixes #5646
This commit is contained in:
parent
0fda8db95c
commit
69bfde4515
1 changed files with 2 additions and 1 deletions
|
|
@ -1174,7 +1174,8 @@ void Curl_http2_done(struct Curl_easy *data, bool premature)
|
|||
http->push_headers = NULL;
|
||||
}
|
||||
|
||||
if(!httpc->h2) /* not HTTP/2 ? */
|
||||
if(!(data->conn->handler->protocol&PROTO_FAMILY_HTTP) ||
|
||||
!httpc->h2) /* not HTTP/2 ? */
|
||||
return;
|
||||
|
||||
if(premature) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue