From: Johann Sebastian Schicho Date: Thu, 25 Apr 2024 11:53:39 +0000 (+0200) Subject: sendf: Curl_cwriter_write: remove comment disallowing zero length writes X-Git-Tag: curl-8_8_0~154 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=31d7cf42fd5a8e1390ea86bf43a043e8ad73ced9;p=thirdparty%2Fcurl.git sendf: Curl_cwriter_write: remove comment disallowing zero length writes They are needed to pass CLIENTWRITE_EOS. Closes #13477 --- diff --git a/lib/sendf.c b/lib/sendf.c index 65fcaa389e..847dfea4b5 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -173,8 +173,7 @@ void Curl_creader_set_rewind(struct Curl_easy *data, bool enable) data->req.rewind_read = !!enable; } -/* Write data using an unencoding writer stack. "nbytes" is not - allowed to be 0. */ +/* Write data using an unencoding writer stack. */ CURLcode Curl_cwriter_write(struct Curl_easy *data, struct Curl_cwriter *writer, int type, const char *buf, size_t nbytes)