diff --git a/a8/mixedsession.cc b/a8/mixedsession.cc index 6b1c35b..87e9f2f 100644 --- a/a8/mixedsession.cc +++ b/a8/mixedsession.cc @@ -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()