Skip to content

Commit

Permalink
Fix curl post headers
Browse files Browse the repository at this point in the history
  • Loading branch information
WiserTixx committed Jan 16, 2025
1 parent 2658d0f commit 6a2ee05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6a2ee05

Please sign in to comment.