# HG changeset patch # User Waqas Hussain # Date 1335011881 -18000 # Node ID 8e582afc214d409a890225a7bf25f8b106c7e9e7 # Parent 92e1a538f8b0c3bb439b3386442661d912b863ff net.http.server: Fire global HTTP event when no specific handlers available. diff -r 92e1a538f8b0 -r 8e582afc214d net/http/server.lua --- a/net/http/server.lua Sat Apr 21 17:37:00 2012 +0500 +++ b/net/http/server.lua Sat Apr 21 17:38:01 2012 +0500 @@ -129,6 +129,7 @@ --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