mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 05:58:01 -05: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
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user