1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-12-25 17:08:22 +01:00

improve antos system API

This commit is contained in:
lxsang 2021-12-06 11:18:05 +01:00
parent bb88057ec1
commit e35e8852b9
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -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")