summaryrefslogtreecommitdiffstats
path: root/src/HTTPServer
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-01-22 14:33:36 +0100
committerMattes D <github@xoft.cz>2015-01-22 14:33:36 +0100
commitf36a00c6037fb4ab2a5d78dbebefa067685f9f63 (patch)
treef0ea4baa88699ac537a0f671b503d4993376927d /src/HTTPServer
parentFixed type conversion warnings. (diff)
parentFixed warnings in StringUtils. (diff)
downloadcuberite-f36a00c6037fb4ab2a5d78dbebefa067685f9f63.tar
cuberite-f36a00c6037fb4ab2a5d78dbebefa067685f9f63.tar.gz
cuberite-f36a00c6037fb4ab2a5d78dbebefa067685f9f63.tar.bz2
cuberite-f36a00c6037fb4ab2a5d78dbebefa067685f9f63.tar.lz
cuberite-f36a00c6037fb4ab2a5d78dbebefa067685f9f63.tar.xz
cuberite-f36a00c6037fb4ab2a5d78dbebefa067685f9f63.tar.zst
cuberite-f36a00c6037fb4ab2a5d78dbebefa067685f9f63.zip
Diffstat (limited to 'src/HTTPServer')
-rw-r--r--src/HTTPServer/HTTPMessage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HTTPServer/HTTPMessage.cpp b/src/HTTPServer/HTTPMessage.cpp
index f6c0204ae..d59ca438e 100644
--- a/src/HTTPServer/HTTPMessage.cpp
+++ b/src/HTTPServer/HTTPMessage.cpp
@@ -55,7 +55,7 @@ void cHTTPMessage::AddHeader(const AString & a_Key, const AString & a_Value)
}
else if (Key == "content-length")
{
- m_ContentLength = atoi(m_Headers[Key].c_str());
+ m_ContentLength = static_cast<size_t>(atol(m_Headers[Key].c_str()));
}
}