aboutsummaryrefslogtreecommitdiffstats
path: root/net/http/server.lua
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
commit59bd215bb29f37b2bbf809728f1d894a9ce112a4 (patch)
tree8356a9658f098a6c584105f4e719978bd24c07e9 /net/http/server.lua
parentbecd794524489f5888069d1dc6612600e7d7a80e (diff)
downloadprosody-59bd215bb29f37b2bbf809728f1d894a9ce112a4.tar.gz
prosody-59bd215bb29f37b2bbf809728f1d894a9ce112a4.zip
net.http.server: Fire global HTTP event when no specific handlers available.
Diffstat (limited to 'net/http/server.lua')
-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