aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-06 00:15:10 +0200
committerKim Alvefur <zash@zash.se>2018-07-06 00:15:10 +0200
commit78dbad124a535b72a9b4b0f7dcfcecb6748190b0 (patch)
tree5af6a49c6b70834ea5c5b2e87dba12203f918333
parentd0f783842e14df2e4ad33740bb3fff358a1618c6 (diff)
downloadprosody-78dbad124a535b72a9b4b0f7dcfcecb6748190b0.tar.gz
prosody-78dbad124a535b72a9b4b0f7dcfcecb6748190b0.zip
mod_http: Rename argument to avoid name clash with outer scope [luacheck]
-rw-r--r--plugins/mod_http.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua
index 9bb6a817..28d5d2d4 100644
--- a/plugins/mod_http.lua
+++ b/plugins/mod_http.lua
@@ -108,9 +108,9 @@ function module.add_host(module)
elseif event_name:sub(-2, -1) == "/*" then
local base_path_len = #event_name:match("/.+$");
local _handler = handler;
- handler = function (event)
- local path = event.request.path:sub(base_path_len);
- return _handler(event, path);
+ handler = function (_event)
+ local path = _event.request.path:sub(base_path_len);
+ return _handler(_event, path);
end;
module:hook_object_event(server, event_name:sub(1, -3), redir_handler, -1);
elseif event_name:sub(-1, -1) == "/" then