diff options
author | Mattes D <github@xoft.cz> | 2015-01-22 14:33:36 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-01-22 14:33:36 +0100 |
commit | f36a00c6037fb4ab2a5d78dbebefa067685f9f63 (patch) | |
tree | f0ea4baa88699ac537a0f671b503d4993376927d /src/HTTPServer/HTTPMessage.cpp | |
parent | Fixed type conversion warnings. (diff) | |
parent | Fixed warnings in StringUtils. (diff) | |
download | cuberite-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/HTTPMessage.cpp')
-rw-r--r-- | src/HTTPServer/HTTPMessage.cpp | 2 |
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())); } } |