mirror of
https://github.com/cuberite/cuberite.git
synced 2025-01-07 03:16:55 +08:00
UrlClient: Fixed invalid Content-Length header.
This commit is contained in:
parent
f673e59b21
commit
d9aed92fb4
@ -353,7 +353,7 @@ public:
|
||||
|
||||
// Send the headers:
|
||||
m_Link->Send(fmt::format(FMT_STRING("Host: {}\r\n"), m_ParentRequest.m_UrlHost));
|
||||
m_Link->Send(fmt::format(FMT_STRING("Content-Length: {}\r\n"), m_ParentRequest.m_Body));
|
||||
m_Link->Send(fmt::format(FMT_STRING("Content-Length: {}\r\n"), m_ParentRequest.m_Body.size()));
|
||||
for (const auto & hdr: m_ParentRequest.m_Headers)
|
||||
{
|
||||
m_Link->Send(fmt::format(FMT_STRING("{}: {}\r\n"), hdr.first, hdr.second));
|
||||
|
Loading…
Reference in New Issue
Block a user