1
0
mirror of synced 2024-11-24 15:50:16 +01:00

fix: Header memory leak in http requests class

This commit is contained in:
WerWolv 2023-03-23 12:08:33 +01:00
parent bb4819bce4
commit 9463105172
2 changed files with 2 additions and 1 deletions

@ -1 +1 @@
Subproject commit 36f3c9cc8c3f38bb1f2540f6dbcdc842f5a67a0d
Subproject commit a2fbf46b5132f5c4a061527f4caf12d11ac0eebf

View File

@ -282,6 +282,7 @@ namespace hex {
curl_slist *headers = nullptr;
headers = curl_slist_append(headers, "Cache-Control: no-cache");
ON_SCOPE_EXIT { curl_slist_free_all(headers); };
for (auto &[key, value] : this->m_headers) {
std::string header = hex::format("{}: {}", key, value);