diff options
author | Matthew Wild <mwild1@gmail.com> | 2013-04-22 12:25:00 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2013-04-22 12:25:00 +0100 |
commit | 7723686e48a90d477cd3857db7e75b286bf255e7 (patch) | |
tree | dcccd7b496aa33d11e95266f3bd44a42f74c67fb /net/http/server.lua | |
parent | eb8fe8a1a76951986e981bb592782a79ef5a09ba (diff) | |
download | prosody-7723686e48a90d477cd3857db7e75b286bf255e7.tar.gz prosody-7723686e48a90d477cd3857db7e75b286bf255e7.zip |
net.server.http: Add a comment
Diffstat (limited to 'net/http/server.lua')
-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 3c2b55d5..577b05ef 100644 --- 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 |