plugins/mod_http.lua
changeset 4915 3fbc01d1fc5a
parent 4911 4c8575b09ff6
child 5092 a89f8f2f2943
--- 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);