diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-12-17 20:10:11 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-12-17 20:10:11 +0000 |
commit | f975e9028d75ce3a8ebf1b93e50e1e05176e491f (patch) | |
tree | 59ccf25981bec5978b2eca8820957993a2b61e37 /net/httpserver.lua | |
parent | 518fdb5c44e87ce878297af1877db5be3af7c144 (diff) | |
download | prosody-f975e9028d75ce3a8ebf1b93e50e1e05176e491f.tar.gz prosody-f975e9028d75ce3a8ebf1b93e50e1e05176e491f.zip |
net.httpserver: Fix usage of old connection API syntax
Diffstat (limited to 'net/httpserver.lua')
-rw-r--r-- | net/httpserver.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/httpserver.lua b/net/httpserver.lua index 4eaea71d..6273bbb9 100644 --- a/net/httpserver.lua +++ b/net/httpserver.lua @@ -183,7 +183,7 @@ local function request_reader(request, data, startpos) request.url = url_parse(request.path); - log("debug", method.." request for "..tostring(request.path) .. " on port "..request.handler.serverport()); + log("debug", method.." request for "..tostring(request.path) .. " on port "..request.handler:serverport()); if request.onlystatus then if not call_callback(request) then @@ -201,7 +201,7 @@ end -- The default handler for requests default_handler = function (method, body, request) - log("debug", method.." request for "..tostring(request.path) .. " on port "..request.handler.serverport()); + log("debug", method.." request for "..tostring(request.path) .. " on port "..request.handler:serverport()); return { status = "404 Not Found", headers = { ["Content-Type"] = "text/html" }, body = "<html><head><title>Page Not Found</title></head><body>Not here :(</body></html>" }; @@ -229,7 +229,7 @@ function destroy_request(request) else log("debug", "Request has no destroy callback"); end - request.handler.close() + request.handler:close() if request.conn then listener.ondisconnect(request.handler, "closed"); end |