aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-12-02 18:03:10 +0000
committerMatthew Wild <mwild1@gmail.com>2009-12-02 18:03:10 +0000
commit7fa0954aafdfb4926487bd352454cd5bbf10c3b7 (patch)
treeaf190c7a2ad80dcce9084fd3982a25ffae70a17c
parentabb55058b092de46030d88997ca703a877d537ed (diff)
downloadprosody-7fa0954aafdfb4926487bd352454cd5bbf10c3b7.tar.gz
prosody-7fa0954aafdfb4926487bd352454cd5bbf10c3b7.zip
net.httpserver: Fix to work with new server API
-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+$")