* Fixed call to push_response
[project/luci.git] / libs / httpd / luasrc / httpd / module.lua
index ba745bde327bd69cd00af828121ae2b57e345cef..c53e834b49092bfb370ad679434d460300853173 100644 (file)
@@ -90,7 +90,7 @@ function Handler.process(self, request, sourcein, sinkout, sinkerr)
                end
        end
        
-       luci.http.push_response(request, status, response, sourceout, sinkout, sinkerr) 
+       luci.http.protocol.push_response(request,response, sourceout, sinkout, sinkerr) 
 end
 
 
@@ -119,7 +119,7 @@ end
 -- Handler Response 
 Response = luci.util.class()
 
-function Response.__init__(self, request, status, headers)
+function Response.__init__(self, status, headers)
        self.status = tonumber(status) or 200
        self.headers = (type(headers) == "table") and headers or {}
 end