projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef61006
)
net.server.http: Add a comment
author
Matthew Wild
<mwild1@gmail.com>
Mon, 22 Apr 2013 11:25:00 +0000
(12:25 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Mon, 22 Apr 2013 11:25:00 +0000
(12:25 +0100)
net/http/server.lua
patch
|
blob
|
history
diff --git
a/net/http/server.lua
b/net/http/server.lua
index 3c2b55d53638cf5ca052dc5b3cf4f8c5ba67e6d1..577b05ef06baf6ac4e9bc34d51566a7034f053bb 100644
(file)
--- a/
net/http/server.lua
+++ b/
net/http/server.lua
@@
-31,6
+31,7
@@
local recent_wildcard_events, max_cached_wildcard_events = {}, 10000;
local event_map = events._event_map;
setmetatable(events._handlers, {
+ -- Called when firing an event that doesn't exist (but may match a wildcard handler)
__index = function (handlers, curr_event)
if is_wildcard_event(curr_event) then return; end -- Wildcard events cannot be fired
-- Find all handlers that could match this event, sort them