From: Stefan Eissing Date: Mon, 11 Mar 2024 08:50:55 +0000 (+0100) Subject: request: clarify message when request has been sent off X-Git-Tag: curl-8_7_0~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6aeb729b5c0d2a4162aca0b58660edf9ef36f8f6;p=thirdparty%2Fcurl.git request: clarify message when request has been sent off Change the "uploaded and fine" message for requests without a body Reported-by: Karthikdasari0423 on github Fixes #13093 Closes #13095 --- diff --git a/lib/request.c b/lib/request.c index ed4aa714c1..7d43acfcdd 100644 --- a/lib/request.c +++ b/lib/request.c @@ -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); }