# HG changeset patch # User Kim Alvefur # Date 1392919735 -3600 # Node ID 583e5c1365fef8710d84a7944934b92afced8704 # Parent c352d97cf137e25d1d346e2876c5376406dd3cdc mod_http: Use hostname from the correct context (thanks gryffus) diff -r c352d97cf137 -r 583e5c1365fe plugins/mod_http.lua --- 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, };