diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-04-26 04:24:43 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-04-26 04:24:43 +0100 |
commit | 37840f043cbe439e89ea82dbb34c208f47845ce0 (patch) | |
tree | a95ec5ed81ed7b4f7804e402da86deabec734d04 | |
parent | 451a2148c933454059be4e606efc35883b3803ad (diff) | |
download | prosody-37840f043cbe439e89ea82dbb34c208f47845ce0.tar.gz prosody-37840f043cbe439e89ea82dbb34c208f47845ce0.zip |
net.http.server: Fix to compare priority if path lengths are the same (logic fail)
-rw-r--r-- | net/http/server.lua | 2 |
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 |