diff options
author | B. Stack <bgstack15@gmail.com> | 2022-11-22 08:54:34 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-11-22 08:54:34 -0500 |
commit | a034cfca98d4408b175938740628a54f57eb7614 (patch) | |
tree | 501fd78c6276c0be8be8d2c671a58dd0598060b5 /libcurl/curl_wrap.cpp | |
parent | add upstream 11.27 (diff) | |
download | FreeFileSync-11.28.tar.gz FreeFileSync-11.28.tar.bz2 FreeFileSync-11.28.zip |
add upstream 11.2811.28
Diffstat (limited to 'libcurl/curl_wrap.cpp')
-rw-r--r-- | libcurl/curl_wrap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcurl/curl_wrap.cpp b/libcurl/curl_wrap.cpp index 5ec56ed3..f9a60233 100644 --- a/libcurl/curl_wrap.cpp +++ b/libcurl/curl_wrap.cpp @@ -221,7 +221,7 @@ HttpSession::Result HttpSession::perform(const std::string& serverRelPath, options.emplace_back(CURLOPT_READFUNCTION, getBytesToSendWrapper); //{CURLOPT_UPLOAD_BUFFERSIZE, 256 * 1024} -> default is 64 kB. apparently no performance improvement for larger buffers like 256 kB - //Contradicting options: CURLOPT_READFUNCTION, CURLOPT_POSTFIELDS: + //Contradicting options: CURLOPT_READFUNCTION, CURLOPT_POSTFIELDS: if (std::any_of(extraOptions.begin(), extraOptions.end(), [](const CurlOption& o) { return o.option == CURLOPT_POSTFIELDS; })) /**/ throw std::logic_error("Contract violation! " + std::string(__FILE__) + ':' + numberTo<std::string>(__LINE__)); } |