fix
This commit is contained in:
parent
7c2a245944
commit
3b68543e32
@ -55,7 +55,7 @@ auto http_put_file::set_method(CURL *curl, stop_type &stop_requested) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto file_size = read_info->file->size();
|
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_INFILE, nullptr);
|
||||||
curl_easy_setopt(curl, CURLOPT_INFILESIZE, 0L);
|
curl_easy_setopt(curl, CURLOPT_INFILESIZE, 0L);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user