diff --git a/repertory/librepertory/src/comm/curl/requests/http_put_file.cpp b/repertory/librepertory/src/comm/curl/requests/http_put_file.cpp index 143ec942..76e4baa3 100644 --- a/repertory/librepertory/src/comm/curl/requests/http_put_file.cpp +++ b/repertory/librepertory/src/comm/curl/requests/http_put_file.cpp @@ -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;