diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-04-02 14:06:38 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-04-02 14:06:38 +0200 |
commit | 93bb5369a89eeda9c456574d8a72ebcac095ddd0 (patch) | |
tree | 4dcd08da161f361c8674713819f619182dc4d3e6 /src/HTTPServer/HTTPMessage.h | |
parent | Rewritten HTTPServer to use size_t for data lengths. (diff) | |
download | cuberite-93bb5369a89eeda9c456574d8a72ebcac095ddd0.tar cuberite-93bb5369a89eeda9c456574d8a72ebcac095ddd0.tar.gz cuberite-93bb5369a89eeda9c456574d8a72ebcac095ddd0.tar.bz2 cuberite-93bb5369a89eeda9c456574d8a72ebcac095ddd0.tar.lz cuberite-93bb5369a89eeda9c456574d8a72ebcac095ddd0.tar.xz cuberite-93bb5369a89eeda9c456574d8a72ebcac095ddd0.tar.zst cuberite-93bb5369a89eeda9c456574d8a72ebcac095ddd0.zip |
Diffstat (limited to 'src/HTTPServer/HTTPMessage.h')
-rw-r--r-- | src/HTTPServer/HTTPMessage.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HTTPServer/HTTPMessage.h b/src/HTTPServer/HTTPMessage.h index d4d96f7cb..c2d310839 100644 --- a/src/HTTPServer/HTTPMessage.h +++ b/src/HTTPServer/HTTPMessage.h @@ -79,7 +79,7 @@ public: size_t ParseHeaders(const char * a_Data, size_t a_Size); /** Returns true if the request did contain a Content-Length header */ - bool HasReceivedContentLength(void) const { return (m_ContentLength >= 0); } + bool HasReceivedContentLength(void) const { return (m_ContentLength != AString::npos); } /** Returns the method used in the request */ const AString & GetMethod(void) const { return m_Method; } |