From 6aeb729b5c0d2a4162aca0b58660edf9ef36f8f6 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Mon, 11 Mar 2024 09:50:55 +0100 Subject: [PATCH] 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 --- lib/request.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }