net.httpserver: Fix to work with new server API

This commit is contained in:
Matthew Wild 2009-12-02 18:03:10 +00:00
parent abb55058b0
commit 7fa0954aaf

View file

@ -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+$")