X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fhttpd%2Fluasrc%2Fhttpd%2Fhandler%2Fluci.lua;fp=libs%2Fhttpd%2Fluasrc%2Fhttpd%2Fhandler%2Fluci.lua;h=18715111f8c42c74d175615dcb090dc624ef1564;hp=65f3f01b25ab537ecbd0c55399d0b8ebd0435e1e;hb=59bef00fc3a9019733103661e67268f55c93ae17;hpb=7a08658fe71e3b0f6e0052709d82b515599d6767 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() )