Diff

net/httpserver.lua @ 3757:e8be634e217a

net.httpserver: Default 'ports' = {5280}
author Matthew Wild <mwild1@gmail.com>
date Fri, 17 Dec 2010 01:24:59 +0000
parent 3540:bc139431830b
child 4003:b840c4c77b92
line wrap: on
line diff
--- a/net/httpserver.lua	Wed Dec 15 04:05:49 2010 +0500
+++ b/net/httpserver.lua	Fri Dec 17 01:24:59 2010 +0000
@@ -190,6 +190,7 @@
 		log("warn", "Old syntax of httpserver.new_from_config being used to register %s", handle_request);
 		handle_request, default_options = default_options, { base = handle_request };
 	end
+	ports = ports or {5280};
 	for _, options in ipairs(ports) do
 		local port = default_options.port or 5280;
 		local base = default_options.base;