]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
request: clarify message when request has been sent off
authorStefan Eissing <stefan@eissing.org>
Mon, 11 Mar 2024 08:50:55 +0000 (09:50 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 11 Mar 2024 11:02:11 +0000 (12:02 +0100)
Change the "uploaded and fine" message for requests without a body

Reported-by: Karthikdasari0423 on github
Fixes #13093
Closes #13095

lib/request.c

index ed4aa714c12c886452ab4e2a0363bc4140b1e9bc..7d43acfcdd9fa6939b48891e997cd527cdc8636b 100644 (file)
@@ -263,7 +263,9 @@ static CURLcode req_set_upload_done(struct Curl_easy *data)
     infof(data, "upload completely sent off: %" CURL_FORMAT_CURL_OFF_T
           " bytes", data->req.writebytecount);
   else
-    infof(data, "We are completely uploaded and fine");
+    infof(data, Curl_creader_total_length(data)?
+                "We are completely uploaded and fine" :
+                "Request completely sent off");
 
   return Curl_xfer_send_close(data);
 }