1
0
mirror of https://github.com/moparisthebest/curl synced 2025-01-10 13:38:04 -05:00

c-hpyer: fix handling of zero-byte chunk from hyper

Closes #6951
This commit is contained in:
Jacob Hoffman-Andrews 2021-04-23 20:24:30 -07:00 committed by Daniel Stenberg
parent f014eeceb2
commit 5e7fc49c19
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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 */