From 6a2ee052ba2d52927bf2220f6fe5984a01e49dfc Mon Sep 17 00:00:00 2001 From: Tixx <83774803+WiserTixx@users.noreply.github.com> Date: Thu, 16 Jan 2025 14:22:47 +0100 Subject: [PATCH] Fix curl post headers --- src/Http.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http.cpp b/src/Http.cpp index 19d73d2..03a31e1 100644 --- a/src/Http.cpp +++ b/src/Http.cpp @@ -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);