From 7fa0954aafdfb4926487bd352454cd5bbf10c3b7 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 2 Dec 2009 18:03:10 +0000 Subject: net.httpserver: Fix to work with new server API --- net/httpserver.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/httpserver.lua b/net/httpserver.lua index aa4c7c06..654025ba 100644 --- a/net/httpserver.lua +++ b/net/httpserver.lua @@ -216,7 +216,7 @@ end function new_request(handler) return { handler = handler, conn = handler.socket, write = function (...) return handler:write(...); end, state = "request", - server = http_servers[handler.serverport()], + server = http_servers[handler:serverport()], send = send_response, destroy = destroy_request, id = tostring{}:match("%x+$") -- cgit v1.2.3