summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-04-02 14:06:38 +0200
committerTycho <work.tycho+git@gmail.com>2014-04-02 14:06:38 +0200
commit93bb5369a89eeda9c456574d8a72ebcac095ddd0 (patch)
tree4dcd08da161f361c8674713819f619182dc4d3e6 /src
parentRewritten HTTPServer to use size_t for data lengths. (diff)
downloadcuberite-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 '')
-rw-r--r--src/HTTPServer/HTTPMessage.h2
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; }