diff options
author | Jacob Hoffman-Andrews <github@hoffman-andrews.com> | 2021-04-23 20:24:30 -0700 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-04-25 14:11:21 +0200 |
commit | 5e7fc49c19b86eab094727f43aa48825e1f50829 (patch) | |
tree | ba0c72385a65cc28bc212ca3482a47348a7a0a4f | |
parent | f014eeceb218200c5864ce91a8de2cc21d951c32 (diff) | |
download | curl-5e7fc49c19b86eab094727f43aa48825e1f50829.tar.gz |
c-hpyer: fix handling of zero-byte chunk from hyper
Closes #6951
-rw-r--r-- | lib/c-hyper.c | 2 |
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 */ |