mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-01 15:26:59 +00:00
Fix curl post headers
This commit is contained in:
parent
2658d0f785
commit
6a2ee052ba
@ -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());
|
list = curl_slist_append(list, ("Content-Type: " + ContentType).c_str());
|
||||||
|
|
||||||
for (auto [header, value] : headers) {
|
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);
|
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, list);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user