diff --git a/repertory/librepertory/include/comm/curl/curl_comm.hpp b/repertory/librepertory/include/comm/curl/curl_comm.hpp index ddbbfc41..e671e646 100644 --- a/repertory/librepertory/include/comm/curl/curl_comm.hpp +++ b/repertory/librepertory/include/comm/curl/curl_comm.hpp @@ -211,7 +211,7 @@ public: curl_easy_setopt(curl, CURLOPT_HTTPHEADER, header_list); } - curl_shared::set_cache(curl); + curl_shared::set_share(curl); auto url = construct_url(curl, request.get_path(), cfg) + parameters; curl_easy_setopt(curl, CURLOPT_URL, url.c_str()); diff --git a/repertory/librepertory/include/comm/curl/curl_shared.hpp b/repertory/librepertory/include/comm/curl/curl_shared.hpp index cd25a973..d214d63c 100644 --- a/repertory/librepertory/include/comm/curl/curl_shared.hpp +++ b/repertory/librepertory/include/comm/curl/curl_shared.hpp @@ -60,7 +60,7 @@ public: [[nodiscard]] static auto init() -> bool; - static void set_cache(CURL *curl); + static void set_share(CURL *curl); }; } // namespace repertory diff --git a/repertory/librepertory/src/comm/curl/curl_shared.cpp b/repertory/librepertory/src/comm/curl/curl_shared.cpp index 19ada37a..a33d7d56 100644 --- a/repertory/librepertory/src/comm/curl/curl_shared.cpp +++ b/repertory/librepertory/src/comm/curl/curl_shared.cpp @@ -60,7 +60,7 @@ void curl_shared::lock_callback(CURL * /* curl */, curl_lock_data data, mtx_.lock(); } -void curl_shared::set_cache(CURL *curl) { +void curl_shared::set_share(CURL *curl) { curl_easy_setopt(curl, CURLOPT_SHARE, cache_.get()); }