diff --git a/src/lib/curl/Global.cxx b/src/lib/curl/Global.cxx index 3111417e8..4e6a668f5 100644 --- a/src/lib/curl/Global.cxx +++ b/src/lib/curl/Global.cxx @@ -176,6 +176,10 @@ CurlGlobal::Remove(CurlRequest &r) noexcept InvalidateSockets(); } +/** + * Find a request by its CURL "easy" handle. + */ +gcc_pure static CurlRequest * ToRequest(CURL *easy) noexcept {