diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-21 21:19:44 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-21 21:19:44 +0200 |
commit | 3ba94daf4b335de2b15b09c7d6fcfe6a3fecf503 (patch) | |
tree | 97b88225bb3b5be35906e520e4e39d23f77e2a4e /plugins/mod_http.lua | |
parent | 245cf9bfbfb09aee6238a6e50cd6bd8016661b30 (diff) | |
download | prosody-3ba94daf4b335de2b15b09c7d6fcfe6a3fecf503.tar.gz prosody-3ba94daf4b335de2b15b09c7d6fcfe6a3fecf503.zip |
mod_http: Hook the host-less event if hooked from a global module
Diffstat (limited to 'plugins/mod_http.lua')
-rw-r--r-- | plugins/mod_http.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua index bd94de40..1f1b8a87 100644 --- a/plugins/mod_http.lua +++ b/plugins/mod_http.lua @@ -38,7 +38,11 @@ local function get_http_event(host, app_path, key) if app_path == "/" and path:sub(1,1) == "/" then app_path = ""; end - return method:upper().." "..host..app_path..path; + if host == "*" then + return method:upper().." "..app_path..path; + else + return method:upper().." "..host..app_path..path; + end end local function get_base_path(host_module, app_name, default_app_path) |