From 7c060d6be5a2fbc46a5a2bb9c6839edb42996a3e Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 21 Sep 2018 21:19:44 +0200 Subject: mod_http: Hook the host-less event if hooked from a global module --- plugins/mod_http.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins/mod_http.lua') 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) -- cgit v1.2.3