]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
sendf: Curl_cwriter_write: remove comment disallowing zero length writes
authorJohann Sebastian Schicho <sebastian-schicho@t-online.de>
Thu, 25 Apr 2024 11:53:39 +0000 (13:53 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 25 Apr 2024 20:28:20 +0000 (22:28 +0200)
They are needed to pass CLIENTWRITE_EOS.

Closes #13477

lib/sendf.c

index 65fcaa389e9ff3bcd106b339780f0df168c902a6..847dfea4b538da6b6380018e59fa15f94904c65c 100644 (file)
@@ -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)