mirror of
https://github.com/lxsang/ant-http
synced 2025-02-24 00:52:48 +01:00
fix libantd
This commit is contained in:
parent
6fbf3d4984
commit
6d77ccd318
@ -304,7 +304,10 @@ void unknow(void* client)
|
|||||||
}
|
}
|
||||||
int ws_enable(dictionary dic)
|
int ws_enable(dictionary dic)
|
||||||
{
|
{
|
||||||
return (dic != NULL && R_INT(dic,"__web_socket__") == 1);
|
if(!dic) return 0;
|
||||||
|
char*v = (char*)dvalue(dic, "__web_socket__");
|
||||||
|
if(!v) return 0;
|
||||||
|
return atoi(v) == 1;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* read the request as a string line format
|
* read the request as a string line format
|
||||||
|
Loading…
x
Reference in New Issue
Block a user