mirror of
https://github.com/lxsang/antd-web-apps
synced 2025-07-23 00:59:52 +02:00
force connection close
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user