This commit is contained in:
aozhiwei 2018-10-09 14:21:10 +08:00
parent a7613d51be
commit cefcdd78b0

View File

@ -15,10 +15,10 @@ namespace a8
static bool IsHttpHead(char* buf, int buflen)
{
return (buflen > 4 && strncmp("GET ", buf, 4)) ||
(buflen > 4 && strncmp("get ", buf, 4)) ||
(buflen > 5 && strncmp("POST ", buf, 5)) ||
(buflen > 5 && strncmp("post ", buf, 5));
return (buflen > 4 && strncmp("GET ", buf, 4) == 0) ||
(buflen > 4 && strncmp("get ", buf, 4) == 0) ||
(buflen > 5 && strncmp("POST ", buf, 5) == 0) ||
(buflen > 5 && strncmp("post ", buf, 5) == 0);
}
void MixedSession::Reset()