aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2012-04-21 17:38:01 +0500
committerWaqas Hussain <waqas20@gmail.com>2012-04-21 17:38:01 +0500
commit7f2c53a45dd7583d4cf560988c81e0ff59d007e1 (patch)
tree8356a9658f098a6c584105f4e719978bd24c07e9
parent4c43038f7494c0800c27ff198a931b92e63c02d1 (diff)
downloadprosody-7f2c53a45dd7583d4cf560988c81e0ff59d007e1.tar.gz
prosody-7f2c53a45dd7583d4cf560988c81e0ff59d007e1.zip
net.http.server: Fire global HTTP event when no specific handlers available.
-rw-r--r--net/http/server.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/http/server.lua b/net/http/server.lua
index feb8f766..1f61c7b9 100644
--- a/net/http/server.lua
+++ b/net/http/server.lua
@@ -129,6 +129,7 @@ function handle_request(conn, request, finish_cb)
--log("debug", "Event: %s", event);
if events.fire_event(event, payload) ~= nil then return; end
-- TODO try adding/stripping / at the end, but this needs to work via an HTTP redirect
+ if events.fire_event("*", payload) ~= nil then return; end
end
-- if handler not called, fallback to legacy httpserver handlers