aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/httpserver.lua2
1 files changed, 1 insertions, 1 deletions
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+$")