diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-12-02 18:03:10 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-12-02 18:03:10 +0000 |
commit | 7fa0954aafdfb4926487bd352454cd5bbf10c3b7 (patch) | |
tree | af190c7a2ad80dcce9084fd3982a25ffae70a17c /net | |
parent | abb55058b092de46030d88997ca703a877d537ed (diff) | |
download | prosody-7fa0954aafdfb4926487bd352454cd5bbf10c3b7.tar.gz prosody-7fa0954aafdfb4926487bd352454cd5bbf10c3b7.zip |
net.httpserver: Fix to work with new server API
Diffstat (limited to 'net')
-rw-r--r-- | net/httpserver.lua | 2 |
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+$") |