1
0
mirror of https://github.com/moparisthebest/curl synced 2025-01-11 14:08:07 -05:00

http2: only do the *done() cleanups for HTTP

Follow-up to ef86daf4d3

Closes #5650
Fixes #5646
This commit is contained in:
Daniel Stenberg 2020-07-04 00:10:04 +02:00
parent 0fda8db95c
commit 69bfde4515
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1174,7 +1174,8 @@ void Curl_http2_done(struct Curl_easy *data, bool premature)
http->push_headers = NULL; http->push_headers = NULL;
} }
if(!httpc->h2) /* not HTTP/2 ? */ if(!(data->conn->handler->protocol&PROTO_FAMILY_HTTP) ||
!httpc->h2) /* not HTTP/2 ? */
return; return;
if(premature) { if(premature) {