From 31d7cf42fd5a8e1390ea86bf43a043e8ad73ced9 Mon Sep 17 00:00:00 2001 From: Johann Sebastian Schicho Date: Thu, 25 Apr 2024 13:53:39 +0200 Subject: [PATCH] sendf: Curl_cwriter_write: remove comment disallowing zero length writes They are needed to pass CLIENTWRITE_EOS. Closes #13477 --- lib/sendf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.47.3