diff --git a/src/curlnetworkadapter.cpp b/src/curlnetworkadapter.cpp index aff782d..be78fc4 100644 --- a/src/curlnetworkadapter.cpp +++ b/src/curlnetworkadapter.cpp @@ -140,6 +140,10 @@ Response CurlNetworkAdapter::get(const std::string& url, // Perform the request res = curl_easy_perform(curl); + // Cleanup the headers + curl_easy_setopt(curl, CURLOPT_HTTPHEADER, NULL); + curl_slist_free_all(headers); + if (res != CURLE_OK) { response.error = curl_easy_strerror(res); if (res == CURLE_OPERATION_TIMEDOUT) { diff --git a/src/version.h b/src/version.h index 1b0010f..29ed82c 100644 --- a/src/version.h +++ b/src/version.h @@ -1,3 +1,3 @@ #pragma once -#define CONFIGCAT_VERSION "4.0.5" +#define CONFIGCAT_VERSION "4.0.6"