summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiels Breuker <niels.breuker@hotmail.nl>2023-05-19 09:50:18 +0200
committerMattes D <github@xoft.cz>2023-05-19 16:25:12 +0200
commitd9aed92fb44261826df081a78b03083978f15503 (patch)
treec7e689c43be70e23f0be0018b340223cab043499
parentUrlClientTest: Added tests for root CA verification. (diff)
downloadcuberite-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
-rw-r--r--src/HTTP/UrlClient.cpp2
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));