Software /
code /
prosody
Comparison
net/http/server.lua @ 4735:474166c08319
net.http.server: Improve comment
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 27 Apr 2012 22:37:56 +0100 |
parent | 4727:5ebf4096a2e1 |
child | 4736:3514338c59c3 |
comparison
equal
deleted
inserted
replaced
4734:4d43dbd6de17 | 4735:474166c08319 |
---|---|
62 return handlers_array; | 62 return handlers_array; |
63 end; | 63 end; |
64 __newindex = function (handlers, curr_event, handlers_array) | 64 __newindex = function (handlers, curr_event, handlers_array) |
65 if handlers_array == nil | 65 if handlers_array == nil |
66 and is_wildcard_event(curr_event) then | 66 and is_wildcard_event(curr_event) then |
67 -- Invalidate all matching | 67 -- Invalidate the indexes of all matching events |
68 for event in pairs(handlers) do | 68 for event in pairs(handlers) do |
69 if is_wildcard_match(curr_event, event) then | 69 if is_wildcard_match(curr_event, event) then |
70 handlers[event] = nil; | 70 handlers[event] = nil; |
71 end | 71 end |
72 end | 72 end |