# HG changeset patch # User Kim Alvefur # Date 1530828825 -7200 # Node ID 75c3b1bd9d7b3019ff1373415626e1444f77e073 # Parent 48d0b908f8b6a2e9470659c74cf6ec21918b4a92 mod_http: Rename loop variable to avoid name clash [luacheck] diff -r 48d0b908f8b6 -r 75c3b1bd9d7b plugins/mod_http.lua --- a/plugins/mod_http.lua Fri Jul 06 00:12:38 2018 +0200 +++ b/plugins/mod_http.lua Fri Jul 06 00:13:45 2018 +0200 @@ -68,9 +68,9 @@ 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 "/")..