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 | fbab8ed06ac738e6aec96db67141f987b9d3c058 (patch) | |
tree | 4d778373a01f7d0d3f4466fcb1e4fbd02418d4a3 /net/http/server.lua | |
parent | 6a73014b9acdf69a7c415ac8f5fa173f83a68362 (diff) | |
download | prosody-fbab8ed06ac738e6aec96db67141f987b9d3c058.tar.gz prosody-fbab8ed06ac738e6aec96db67141f987b9d3c058.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 |