diff options
author | Kim Alvefur <zash@zash.se> | 2019-11-01 22:28:39 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-11-01 22:28:39 +0100 |
commit | 2cd169874e8404f3a4c87855558a7bc7c7709c14 (patch) | |
tree | 4d778373a01f7d0d3f4466fcb1e4fbd02418d4a3 /net/http/server.lua | |
parent | 23b03a53ef4085fb704a2fe50e564711b3c3fee8 (diff) | |
download | prosody-2cd169874e8404f3a4c87855558a7bc7c7709c14.tar.gz prosody-2cd169874e8404f3a4c87855558a7bc7c7709c14.zip |
net.http.server: Tail call because tail call!
Diffstat (limited to 'net/http/server.lua')
-rw-r--r-- | net/http/server.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http/server.lua b/net/http/server.lua index 991ef970..0682d6ed 100644 --- a/net/http/server.lua +++ b/net/http/server.lua @@ -199,7 +199,7 @@ local function handle_result(request, response, result) end end end - response:send(body); + return response:send(body); end function _M.hijack_response(response, listener) -- luacheck: ignore |