diff --git a/src/lib/curl/Easy.hxx b/src/lib/curl/Easy.hxx index e7ac2b25e..563c3fa46 100644 --- a/src/lib/curl/Easy.hxx +++ b/src/lib/curl/Easy.hxx @@ -8,9 +8,10 @@ #include -#include -#include #include +#include +#include +#include /** * An OO wrapper for a "CURL*" (a libCURL "easy" handle). @@ -167,6 +168,10 @@ public: SetOption(CURLOPT_POSTFIELDSIZE, (long)size); } + void SetRequestBody(std::string_view s) { + SetRequestBody(s.data(), s.size()); + } + void SetMimePost(const curl_mime *mime) { SetOption(CURLOPT_MIMEPOST, mime); }