Skip to content

Commit

Permalink
Fix EasyCurl
Browse files Browse the repository at this point in the history
  • Loading branch information
bog-dan-ro committed Jan 27, 2024
1 parent 36191c4 commit c0d1c57
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/common/EasyCurl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ EasyCurl::Response EasyCurl::request(const std::string &method, std::string uplo
setOptions(CURLOPT_READFUNCTION, &read_callback);
setOptions(CURLOPT_UPLOAD, 1L);
setOptions(CURLOPT_INFILESIZE_LARGE, curl_off_t(upload.size()));
} else {
setOptions(CURLOPT_READDATA, nullptr);
setOptions(CURLOPT_READFUNCTION, nullptr);
setOptions(CURLOPT_UPLOAD, 0L);
setOptions(CURLOPT_INFILESIZE_LARGE, 0);
}

auto err = curl_easy_perform(m_curl);
Expand Down

0 comments on commit c0d1c57

Please sign in to comment.