lib/curl/Easy: drop deprecated CURLOPT_HTTPPOST wrapper

This commit is contained in:
Max Kellermann 2022-12-31 08:00:47 +01:00
parent 4efd0a9f77
commit e1d641f684

View File

@ -186,10 +186,6 @@ public:
SetOption(CURLOPT_POSTFIELDSIZE, (long)size);
}
void SetHttpPost(const struct curl_httppost *post) {
SetOption(CURLOPT_HTTPPOST, post);
}
template<typename T>
bool GetInfo(CURLINFO info, T value_r) const noexcept {
return ::curl_easy_getinfo(handle, info, value_r) == CURLE_OK;