Software /
code /
prosody
Changeset
5190:76c73bd3d483
mod_http: Make module:http_url() aware of http_host
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 22 Nov 2012 20:40:06 +0100 |
parents | 5188:6689605f8591 |
children | 5191:9ab06d0dbf68 5192:3fc3a3072cc2 |
files | plugins/mod_http.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_http.lua Thu Nov 22 19:37:30 2012 +0000 +++ b/plugins/mod_http.lua Thu Nov 22 20:40:06 2012 +0100 @@ -55,7 +55,7 @@ for port, services in pairs(ports) do local url = { scheme = (external_url.scheme or services[1].service.name); - host = (external_url.host or module.host); + host = (external_url.host or module:get_option_string("http_host", module.host)); port = tonumber(external_url.port) or port or 80; path = normalize_path(external_url.path or "/").. (get_base_path(module, app_name, default_path or "/"..app_name):sub(2));