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 | 2416b4e47b1dc2e04b394138fb38ace0f7e5cc61 (patch) | |
tree | a95ec5ed81ed7b4f7804e402da86deabec734d04 | |
parent | 169deb9ca6cd622b09f2b186cc605be034a8a44a (diff) | |
download | prosody-2416b4e47b1dc2e04b394138fb38ace0f7e5cc61.tar.gz prosody-2416b4e47b1dc2e04b394138fb38ace0f7e5cc61.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 |