diff options
author | Kim Alvefur <zash@zash.se> | 2018-07-06 00:15:10 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-07-06 00:15:10 +0200 |
commit | 6e567e7aebe1d14a351343785c9a8103f96c9fc8 (patch) | |
tree | 5af6a49c6b70834ea5c5b2e87dba12203f918333 /plugins | |
parent | c969c2c90c310aa58e8fc1e31be04b46bc9b8867 (diff) | |
download | prosody-6e567e7aebe1d14a351343785c9a8103f96c9fc8.tar.gz prosody-6e567e7aebe1d14a351343785c9a8103f96c9fc8.zip |
mod_http: Rename argument to avoid name clash with outer scope [luacheck]
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_http.lua | 6 |
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 |