From 3b68543e327fe78b0c368e69260720ea9f90d3f1 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Thu, 24 Oct 2024 14:47:13 -0500 Subject: [PATCH] fix --- repertory/librepertory/src/comm/curl/requests/http_put_file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;