mirror of
https://github.com/lxsang/ant-http
synced 2025-08-28 06:42:32 +02:00
fix libantd
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user