# HG changeset patch # User Kim Alvefur # Date 1537557584 -7200 # Node ID 9e8d7d461c7d176cd2629defc7c3612a1e79e4ad # Parent 2dc7490899aecfc3cdc747738a728dfdb0b9850b mod_http: Hook the host-less event if hooked from a global module diff -r 2dc7490899ae -r 9e8d7d461c7d plugins/mod_http.lua --- a/plugins/mod_http.lua Fri Sep 21 21:19:41 2018 +0200 +++ b/plugins/mod_http.lua Fri Sep 21 21:19:44 2018 +0200 @@ -38,7 +38,11 @@ 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)