summaryrefslogtreecommitdiffhomepage
path: root/libs/httpd
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-10 12:58:05 +0000
committerSteven Barth <steven@midlink.org>2008-08-10 12:58:05 +0000
commitf9fa6d82da4f15473a49822d6d9dfda34144b85e (patch)
treeb5a1593155a67919118e2201c244d239a87ba31f /libs/httpd
parent2787a7f68896663647e19a1387195ae18db7d37a (diff)
* libs/web: Reworked authentication
Diffstat (limited to 'libs/httpd')
-rwxr-xr-xlibs/httpd/host/runluci3
-rw-r--r--libs/httpd/luasrc/httpd/handler/luci.lua2
2 files changed, 3 insertions, 2 deletions
diff --git a/libs/httpd/host/runluci b/libs/httpd/host/runluci
index 6f6cdde3d..d31b3f79c 100755
--- a/libs/httpd/host/runluci
+++ b/libs/httpd/host/runluci
@@ -23,6 +23,9 @@ if pcall(require, "uci") and pcall(require, "luci.model.uci") then
luci.model.uci.set_confdir(luci.model.uci.confdir_default)
end
+require("luci.sys")
+luci.sys.user.checkpasswd = function() return true end
+
filehandler = luci.httpd.handler.file.Simple(DOCROOT)
vhost:set_default_handler(filehandler)
diff --git a/libs/httpd/luasrc/httpd/handler/luci.lua b/libs/httpd/luasrc/httpd/handler/luci.lua
index 232883256..ac3ed78d0 100644
--- a/libs/httpd/luasrc/httpd/handler/luci.lua
+++ b/libs/httpd/luasrc/httpd/handler/luci.lua
@@ -32,7 +32,6 @@ end
function Luci.handle_head(self, ...)
local response, sourceout = self:handle_get(...)
- self.running = self.running - 1
return response
end
@@ -67,7 +66,6 @@ function Luci.handle_get(self, request, sourcein, sinkerr)
status = 500
headers["Content-Type"] = "text/plain"
local err = {id}
- self.running = self.running - 1
return Response( status, headers ), function() return table.remove(err) end
end