1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-11-20 02:18:20 +01:00

force connection close

This commit is contained in:
lxsang 2021-05-06 20:39:10 +02:00
parent 30abb9552f
commit 4479c9a882
2 changed files with 2 additions and 0 deletions

Binary file not shown.

View File

@ -1,10 +1,12 @@
require("sqlite")
function fail(msg)
std.custom_header("Connection","close")
std.json()
std.t(JSON.encode({error=msg}))
end
function result(obj)
std.custom_header("Connection","close")
std.json()
std.t(JSON.encode({result=obj, error=false}))
end