diff options
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__)); } |