lib: fix 0-length Curl_client_write calls

Closes #6954
This commit is contained in:
Jacob Hoffman-Andrews 2021-04-27 15:48:01 -07:00 committed by Daniel Stenberg
parent f4b85d24b2
commit 5c932f8fe9
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 16 additions and 6 deletions

View file

@ -985,7 +985,8 @@ new_unencoding_writer(struct Curl_easy *data,
return writer;
}
/* Write data using an unencoding writer stack. */
/* Write data using an unencoding writer stack. "nbytes" is not
allowed to be 0. */
CURLcode Curl_unencode_write(struct Curl_easy *data,
struct contenc_writer *writer,
const char *buf, size_t nbytes)