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:
parent
30abb9552f
commit
4479c9a882
BIN
dist/antd_web_apps.tar.gz
vendored
BIN
dist/antd_web_apps.tar.gz
vendored
Binary file not shown.
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user