diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-11-02 17:34:04 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-11-02 22:49:36 +0100 |
commit | d70a5b5a0f5e36781a39e2c955139c81d41355c1 (patch) | |
tree | 54bb308146bdbd9e8da1fd228b8757967ac8014e /lib/transfer.c | |
parent | 606d213766fb94a4653ec41ef3b91cc0a96b9570 (diff) | |
download | curl-d70a5b5a0f5e36781a39e2c955139c81d41355c1.tar.gz |
sendf: move the verbose-check into Curl_debug
Saves us from having the same check done everywhere.
Closes #6159
Diffstat (limited to 'lib/transfer.c')
-rw-r--r-- | lib/transfer.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index a07c7af8c..05a9e8ff6 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -1152,10 +1152,9 @@ static CURLcode readwrite_upload(struct Curl_easy *data, win_update_buffer_size(conn->writesockfd); - if(data->set.verbose) - /* show the data before we change the pointer upload_fromhere */ - Curl_debug(data, CURLINFO_DATA_OUT, k->upload_fromhere, - (size_t)bytes_written); + /* show the data before we change the pointer upload_fromhere */ + Curl_debug(data, CURLINFO_DATA_OUT, k->upload_fromhere, + (size_t)bytes_written); k->writebytecount += bytes_written; Curl_pgrsSetUploadCounter(data, k->writebytecount); |