Software /
code /
prosody
Comparison
net/http/server.lua @ 4682:9d90c70b6358
net.http.server: Remove debug message
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 24 Apr 2012 19:05:45 +0100 |
parent | 4668:cce0c739b0d7 |
child | 4683:c1374e083c97 |
comparison
equal
deleted
inserted
replaced
4681:3299223bbed5 | 4682:9d90c70b6358 |
---|---|
24 | 24 |
25 local function is_wildcard_event(event) | 25 local function is_wildcard_event(event) |
26 return event:sub(-2, -1) == "/*"; | 26 return event:sub(-2, -1) == "/*"; |
27 end | 27 end |
28 local function is_wildcard_match(wildcard_event, event) | 28 local function is_wildcard_match(wildcard_event, event) |
29 log("debug", "comparing %q with %q", wildcard_event:sub(1, -2), event:sub(1, #wildcard_event-1)); | |
30 return wildcard_event:sub(1, -2) == event:sub(1, #wildcard_event-1); | 29 return wildcard_event:sub(1, -2) == event:sub(1, #wildcard_event-1); |
31 end | 30 end |
32 | 31 |
33 local event_map = events._event_map; | 32 local event_map = events._event_map; |
34 setmetatable(events._handlers, { | 33 setmetatable(events._handlers, { |