Allow Basic-Auth pass-through
[project/luci.git] / libs / lucid-http / luasrc / lucid / http / server.lua
index 0fe947316635251c6f207c6c793514bd92324335..cb10813b9ee7aee499c3a75b2e2c92c0653b280c 100644 (file)
@@ -132,6 +132,7 @@ function Handler.checkrestricted(self, request)
                end
                
                if stat then
+                       request.env.HTTP_AUTH_USER, request.env.HTTP_AUTH_PASS = user, pass
                        return
                end
        end