# HG changeset patch # User Matthew Wild # Date 1259776990 0 # Node ID dd344b94d0885d52f03269ca624a0808ddbe55f2 # Parent 6241da17f48d806a091ad97040da79f1e309d63b net.httpserver: Fix to work with new server API diff -r 6241da17f48d -r dd344b94d088 net/httpserver.lua --- a/net/httpserver.lua Wed Dec 02 18:02:47 2009 +0000 +++ b/net/httpserver.lua Wed Dec 02 18:03:10 2009 +0000 @@ -216,7 +216,7 @@ 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+$")