Fix curl post headers

This commit is contained in:
Tixx 2025-01-16 14:22:47 +01:00
parent 2658d0f785
commit 6a2ee052ba
No known key found for this signature in database
GPG Key ID: EC6E7A2BAABF0B8C

View File

@ -84,7 +84,7 @@ std::string Http::POST(const std::string& url, const std::string& body, const st
list = curl_slist_append(list, ("Content-Type: " + ContentType).c_str());
for (auto [header, value] : headers) {
list = curl_slist_append(list, (header + value).c_str());
list = curl_slist_append(list, (header + ": " + value).c_str());
}
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, list);