diff options
author | Niels Breuker <niels.breuker@hotmail.nl> | 2023-05-19 09:50:18 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2023-05-19 16:25:12 +0200 |
commit | d9aed92fb44261826df081a78b03083978f15503 (patch) | |
tree | c7e689c43be70e23f0be0018b340223cab043499 /src | |
parent | UrlClientTest: Added tests for root CA verification. (diff) | |
download | cuberite-d9aed92fb44261826df081a78b03083978f15503.tar cuberite-d9aed92fb44261826df081a78b03083978f15503.tar.gz cuberite-d9aed92fb44261826df081a78b03083978f15503.tar.bz2 cuberite-d9aed92fb44261826df081a78b03083978f15503.tar.lz cuberite-d9aed92fb44261826df081a78b03083978f15503.tar.xz cuberite-d9aed92fb44261826df081a78b03083978f15503.tar.zst cuberite-d9aed92fb44261826df081a78b03083978f15503.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/HTTP/UrlClient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HTTP/UrlClient.cpp b/src/HTTP/UrlClient.cpp index 11e4d2cc1..24eeef0f1 100644 --- a/src/HTTP/UrlClient.cpp +++ b/src/HTTP/UrlClient.cpp @@ -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)); |