1
This commit is contained in:
parent
a7613d51be
commit
cefcdd78b0
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user