This commit is contained in:
Scott E. Graves 2024-10-24 14:47:13 -05:00
parent 7c2a245944
commit 3b68543e32

View File

@ -55,7 +55,7 @@ auto http_put_file::set_method(CURL *curl, stop_type &stop_requested) const
}
auto file_size = read_info->file->size();
if (file_size > 0U) {
if (file_size == 0U) {
curl_easy_setopt(curl, CURLOPT_INFILE, nullptr);
curl_easy_setopt(curl, CURLOPT_INFILESIZE, 0L);
return true;