[WebIO]: Fix Crash (#580)
This commit is contained in:
parent
f7b27205b8
commit
c38a258102
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user