summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-07-04 00:10:04 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-07-04 00:10:04 +0200
commitd73afef0bdaa086c19575746ae12c57de5324934 (patch)
tree83e9fb01e2dc4a41cc7144302bdc59099fd17822
parentef86daf4d39e99b227d42bb712000c9adfdbdf76 (diff)
downloadcurl-bagder/http2-done-only-http.tar.gz
http2: only do the *done() cleanups for HTTPbagder/http2-done-only-http
-rw-r--r--lib/http2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/http2.c b/lib/http2.c
index ea75d7f1f..e81dc8d01 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -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) {