1
0

Fixed Comparison to -1 in HTTPMessage.h

This commit is contained in:
Tycho 2014-04-02 05:06:38 -07:00
parent 1795cca552
commit 93bb5369a8

View File

@ -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; }