Merge pull request #581 from XLabsProject/develop

Release v0.7.6
This commit is contained in:
Edo 2022-11-22 21:08:46 +00:00 committed by GitHub
commit 32115501d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,9 +279,9 @@ namespace Utils
return {}; return {};
} }
if (const auto itr = headers.find("Content-Type"); itr == headers.end()) if (!headers.contains("Content-Type"))
{ {
itr->second = "application/x-www-form-urlencoded"; headers["Content-Type"] = "application/x-www-form-urlencoded";
} }
std::string finalHeaders; std::string finalHeaders;