projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix sgi-wsapi and sgi-luci to be standards compliant
[project/luci.git]
/
libs
/
httpd
/
luasrc
/
httpd
/
handler
/
luci.lua
diff --git
a/libs/httpd/luasrc/httpd/handler/luci.lua
b/libs/httpd/luasrc/httpd/handler/luci.lua
index
65f3f01
..
1871511
100644
(file)
--- 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
elseif not id then
return true
elseif id == 5 then
- return
nil
- else
+ return
true
+ else
if id == 4 then
return data
end
return data
end
+ if coroutine.status(x) == "dead" then
+ return nil
+ end
end
headers["Expires"] = luci.http.protocol.date.to_http( os.time() )
end
headers["Expires"] = luci.http.protocol.date.to_http( os.time() )