From 5e7fc49c19b86eab094727f43aa48825e1f50829 Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Fri, 23 Apr 2021 20:24:30 -0700 Subject: c-hpyer: fix handling of zero-byte chunk from hyper Closes #6951 --- lib/c-hyper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/c-hyper.c b/lib/c-hyper.c index 5d370d7bd..a7bee08c4 100644 --- a/lib/c-hyper.c +++ b/lib/c-hyper.c @@ -175,6 +175,8 @@ static int hyper_body_chunk(void *userdata, const hyper_buf *chunk) } if(k->ignorebody) return HYPER_ITER_CONTINUE; + if(0 == len) + return HYPER_ITER_CONTINUE; Curl_debug(data, CURLINFO_DATA_IN, buf, len); if(!data->set.http_ce_skip && k->writer_stack) /* content-encoded data */ -- cgit v1.2.1