diff --git a/src/lib/curl/Easy.hxx b/src/lib/curl/Easy.hxx index 21067f678..8d9596041 100644 --- a/src/lib/curl/Easy.hxx +++ b/src/lib/curl/Easy.hxx @@ -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); } diff --git a/src/lib/curl/Request.cxx b/src/lib/curl/Request.cxx index 733199d82..b08bb2095 100644 --- a/src/lib/curl/Request.cxx +++ b/src/lib/curl/Request.cxx @@ -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