summaryrefslogtreecommitdiffhomepage
path: root/libs/httpd/luasrc
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-23 18:52:12 +0000
committerSteven Barth <steven@midlink.org>2008-07-23 18:52:12 +0000
commit22451345d859bdae5a8cc18464459e3a18406cb1 (patch)
tree6f4c0ca6e185f4501067a9cdb01d463ef5f88d3e /libs/httpd/luasrc
parent59bef00fc3a9019733103661e67268f55c93ae17 (diff)
Made SGIs even more standards compliant (respect EOF command from LuCI)
Diffstat (limited to 'libs/httpd/luasrc')
-rw-r--r--libs/httpd/luasrc/httpd/handler/luci.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/httpd/luasrc/httpd/handler/luci.lua b/libs/httpd/luasrc/httpd/handler/luci.lua
index 18715111f8..232883256e 100644
--- a/libs/httpd/luasrc/httpd/handler/luci.lua
+++ b/libs/httpd/luasrc/httpd/handler/luci.lua
@@ -55,6 +55,7 @@ function Luci.handle_get(self, request, sourcein, sinkerr)
local res, id, data1, data2 = true, 0, nil, nil
local headers = {}
local status = 200
+ local active = true
local x = coroutine.create(luci.dispatcher.httpdispatch)
while not id or id < 3 do
@@ -81,9 +82,10 @@ function Luci.handle_get(self, request, sourcein, sinkerr)
local res, id, data = coroutine.resume(x)
if not res then
return nil, id
- elseif not id then
+ elseif not id or not active then
return true
elseif id == 5 then
+ active = false
return true
elseif id == 4 then
return data