aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-26 04:24:43 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-26 04:24:43 +0100
commit2416b4e47b1dc2e04b394138fb38ace0f7e5cc61 (patch)
treea95ec5ed81ed7b4f7804e402da86deabec734d04 /net
parent169deb9ca6cd622b09f2b186cc605be034a8a44a (diff)
downloadprosody-2416b4e47b1dc2e04b394138fb38ace0f7e5cc61.tar.gz
prosody-2416b4e47b1dc2e04b394138fb38ace0f7e5cc61.zip
net.http.server: Fix to compare priority if path lengths are the same (logic fail)
Diffstat (limited to 'net')
-rw-r--r--net/http/server.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http/server.lua b/net/http/server.lua
index c108a398..58554f39 100644
--- a/net/http/server.lua
+++ b/net/http/server.lua
@@ -50,7 +50,7 @@ setmetatable(events._handlers, {
table.sort(handlers_array, function(b, a)
local a_score, b_score = matching_handlers_set[a], matching_handlers_set[b];
for i = 1, #a_score do
- if a ~= b then -- If equal, compare next score value
+ if a_score[i] ~= b_score[i] then -- If equal, compare next score value
return a_score[i] < b_score[i];
end
end