mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-19 18:08:21 +01:00
improve antos system API
This commit is contained in:
parent
bb88057ec1
commit
e35e8852b9
BIN
dist/antd_web_apps.tar.gz
vendored
BIN
dist/antd_web_apps.tar.gz
vendored
Binary file not shown.
@ -156,7 +156,9 @@ function SystemController:apigateway(...)
|
||||
if use_ws then
|
||||
if std.ws.enable() then
|
||||
-- read header
|
||||
local header = std.ws.header()
|
||||
local header = nil
|
||||
-- wait until we receive request
|
||||
while(not header) do header = std.ws.header() end
|
||||
if header then
|
||||
if header.mask == 0 then
|
||||
print("Data is not masked")
|
||||
|
Loading…
Reference in New Issue
Block a user