summaryrefslogtreecommitdiffhomepage
path: root/libs/httpd/luasrc
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-23 18:31:47 +0000
committerSteven Barth <steven@midlink.org>2008-07-23 18:31:47 +0000
commit59bef00fc3a9019733103661e67268f55c93ae17 (patch)
treee52b8b7e6ba4b4f33402a2c95299a073976079ef /libs/httpd/luasrc
parent7a08658fe71e3b0f6e0052709d82b515599d6767 (diff)
Fix sgi-wsapi and sgi-luci to be standards compliant
Diffstat (limited to 'libs/httpd/luasrc')
-rw-r--r--libs/httpd/luasrc/httpd/handler/luci.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/httpd/luasrc/httpd/handler/luci.lua b/libs/httpd/luasrc/httpd/handler/luci.lua
index 65f3f01b2..18715111f 100644
--- a/libs/httpd/luasrc/httpd/handler/luci.lua
+++ b/libs/httpd/luasrc/httpd/handler/luci.lua
@@ -84,10 +84,13 @@ function Luci.handle_get(self, request, sourcein, sinkerr)
elseif not id then
return true
elseif id == 5 then
- return nil
- else
+ return true
+ elseif id == 4 then
return data
end
+ if coroutine.status(x) == "dead" then
+ return nil
+ end
end
headers["Expires"] = luci.http.protocol.date.to_http( os.time() )