lib/curl/Easy: add method Unpause()

This commit is contained in:
Max Kellermann 2019-08-19 21:18:59 +02:00
parent 402f429b17
commit 7a473729af
2 changed files with 5 additions and 1 deletions

View File

@ -160,6 +160,10 @@ public:
SetOption(CURLOPT_HTTPPOST, post);
}
bool Unpause() noexcept {
return ::curl_easy_pause(handle, CURLPAUSE_CONT) == CURLE_OK;
}
char *Escape(const char *string, int length=0) const noexcept {
return curl_easy_escape(handle, string, length);
}

View File

@ -120,7 +120,7 @@ CurlRequest::Resume() noexcept
{
assert(registered);
curl_easy_pause(easy.Get(), CURLPAUSE_CONT);
easy.Unpause();
if (IsCurlOlderThan(0x072000))
/* libcurl older than 7.32.0 does not update