diff options
author | Kim Alvefur <zash@zash.se> | 2018-07-06 00:13:45 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-07-06 00:13:45 +0200 |
commit | 6047a301a2a4a9cb97ce9f6faf345df6a3867b0a (patch) | |
tree | 403739b42573ef4ccef9f7ec38efc0cb8ab6eae6 | |
parent | 3c5f5ec3de8490bf474bc44bc90e620f526d8c3f (diff) | |
download | prosody-6047a301a2a4a9cb97ce9f6faf345df6a3867b0a.tar.gz prosody-6047a301a2a4a9cb97ce9f6faf345df6a3867b0a.zip |
mod_http: Rename loop variable to avoid name clash [luacheck]
-rw-r--r-- | plugins/mod_http.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua index 7fa55b01..99435e4e 100644 --- a/plugins/mod_http.lua +++ b/plugins/mod_http.lua @@ -68,9 +68,9 @@ function moduleapi.http_url(module, app_name, default_path) local services = portmanager.get_active_services(); local http_services = services:get("https") or services:get("http") or {}; for interface, ports in pairs(http_services) do -- luacheck: ignore 213/interface - for port, services in pairs(ports) do -- luacheck: ignore 512 + for port, service in pairs(ports) do -- luacheck: ignore 512 local url = { - scheme = (external_url.scheme or services[1].service.name); + scheme = (external_url.scheme or service[1].service.name); host = (external_url.host or module:get_option_string("http_host", module.host)); port = tonumber(external_url.port) or port or 80; path = normalize_path(external_url.path or "/").. |