summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>2021-04-23 20:24:30 -0700
committerDaniel Stenberg <daniel@haxx.se>2021-04-25 14:11:21 +0200
commit5e7fc49c19b86eab094727f43aa48825e1f50829 (patch)
treeba0c72385a65cc28bc212ca3482a47348a7a0a4f
parentf014eeceb218200c5864ce91a8de2cc21d951c32 (diff)
downloadcurl-5e7fc49c19b86eab094727f43aa48825e1f50829.tar.gz
c-hpyer: fix handling of zero-byte chunk from hyper
Closes #6951
-rw-r--r--lib/c-hyper.c2
1 files changed, 2 insertions, 0 deletions
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 */