aboutsummaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-01 22:28:39 +0100
committerKim Alvefur <zash@zash.se>2019-11-01 22:28:39 +0100
commit2cd169874e8404f3a4c87855558a7bc7c7709c14 (patch)
tree4d778373a01f7d0d3f4466fcb1e4fbd02418d4a3 /net/http
parent23b03a53ef4085fb704a2fe50e564711b3c3fee8 (diff)
downloadprosody-2cd169874e8404f3a4c87855558a7bc7c7709c14.tar.gz
prosody-2cd169874e8404f3a4c87855558a7bc7c7709c14.zip
net.http.server: Tail call because tail call!
Diffstat (limited to 'net/http')
-rw-r--r--net/http/server.lua2
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