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
This commit is contained in:
Stefan Eissing 2024-03-11 09:50:55 +01:00 committed by Daniel Stenberg
parent cd93765144
commit 6aeb729b5c
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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);
}