diff options
author | Waqas Hussain <waqas20@gmail.com> | 2012-04-21 17:38:01 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2012-04-21 17:38:01 +0500 |
commit | 7f2c53a45dd7583d4cf560988c81e0ff59d007e1 (patch) | |
tree | 8356a9658f098a6c584105f4e719978bd24c07e9 /net/http | |
parent | 4c43038f7494c0800c27ff198a931b92e63c02d1 (diff) | |
download | prosody-7f2c53a45dd7583d4cf560988c81e0ff59d007e1.tar.gz prosody-7f2c53a45dd7583d4cf560988c81e0ff59d007e1.zip |
net.http.server: Fire global HTTP event when no specific handlers available.
Diffstat (limited to 'net/http')
-rw-r--r-- | net/http/server.lua | 1 |
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 |