# HG changeset patch # User Matthew Wild # Date 1338058183 -3600 # Node ID 3fbc01d1fc5afd901e0ad3d9a32abc871db6f3ec # Parent 2e9b16b2ae00c4450213efd0a6a9cf83f7795356 mod_http: Fix traceback when no HTTP services succeed in binding diff -r 2e9b16b2ae00 -r 3fbc01d1fc5a plugins/mod_http.lua --- a/plugins/mod_http.lua Sat May 26 19:41:17 2012 +0100 +++ b/plugins/mod_http.lua Sat May 26 19:49:43 2012 +0100 @@ -44,7 +44,7 @@ app_name = app_name or (module.name:gsub("^http_", "")); local ext = url_parse(module:get_option_string("http_external_url")) or {}; local services = portmanager.get_active_services(); - local http_services = services:get("https") or services:get("http"); + local http_services = services:get("https") or services:get("http") or {}; for interface, ports in pairs(http_services) do for port, services in pairs(ports) do local path = get_base_path(module, app_name, default_path or "/"..app_name);