1
0

Fixed HTTP message parsing, prepared for SSL.

This commit is contained in:
madmaxoft
2014-05-01 11:34:15 +02:00
parent e1b6a16945
commit a04cb6d146
2 changed files with 4 additions and 3 deletions

View File

@@ -201,7 +201,7 @@ size_t cHTTPRequest::ParseRequestLine(const char * a_Data, size_t a_Size)
return AString::npos;
}
// Check that there's HTTP/version at the end
if (strncmp(a_Data + URLEnd + 1, "HTTP/1.", 7) != 0)
if (strncmp(m_IncomingHeaderData.c_str() + URLEnd + 1, "HTTP/1.", 7) != 0)
{
m_IsValid = false;
return AString::npos;