Diff

plugins/mod_http.lua @ 6025:583e5c1365fe

mod_http: Use hostname from the correct context (thanks gryffus)
author Kim Alvefur <zash@zash.se>
date Thu, 20 Feb 2014 19:08:55 +0100
parent 5427:199e7989f713
child 6026:8a8be471ec72
line wrap: on
line diff
--- a/plugins/mod_http.lua	Tue Feb 18 16:03:13 2014 -0500
+++ b/plugins/mod_http.lua	Thu Feb 20 19:08:55 2014 +0100
@@ -42,7 +42,7 @@
 	return (normalize_path(host_module:get_option("http_paths", {})[app_name] -- Host
 		or module:get_option("http_paths", {})[app_name] -- Global
 		or default_app_path)) -- Default
-		:gsub("%$(%w+)", { host = module.host });
+		:gsub("%$(%w+)", { host = host_module.host });
 end
 
 local ports_by_scheme = { http = 80, https = 443, };