aboutsummaryrefslogtreecommitdiffstats
path: root/net/http.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-04-04 18:42:05 +0100
committerMatthew Wild <mwild1@gmail.com>2018-04-04 18:42:05 +0100
commit3990f293e219a92e5da856b8d17c53533227e088 (patch)
tree192dddbb9a5b935e8686f7b67a483a028fd67fec /net/http.lua
parent054e1807e5c7e26e9ec0b3ce762de5a42fb0e651 (diff)
parentbef96be8a083272ef67fc19e8e6654659a2d19c5 (diff)
downloadprosody-3990f293e219a92e5da856b8d17c53533227e088.tar.gz
prosody-3990f293e219a92e5da856b8d17c53533227e088.zip
Merge 0.10 -> trunk
Diffstat (limited to 'net/http.lua')
-rw-r--r--net/http.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http.lua b/net/http.lua
index c85fa056..997c8d7e 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -100,7 +100,7 @@ function listener.onconnect(conn)
end
log("debug", "Request '%s': Calling callback, status %s", req.id, code or "---");
- return log_if_failed(req.id, xpcall(function () return callback(content, code, request, response) end, handleerr));
+ return log_if_failed(req.id, xpcall(function () return callback(content, code, response, request) end, handleerr));
end
req.reader = request_reader;
req.state = "status";