Changeset

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
parents 6024:c352d97cf137
children 6026:8a8be471ec72
files plugins/mod_http.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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, };