summaryrefslogtreecommitdiff
path: root/lib/rack
diff options
context:
space:
mode:
authorrinaldifonseca <rinaldifonseca@gmail.com>2011-03-25 23:21:29 -0300
committerMichael Fellinger <m.fellinger@gmail.com>2011-03-26 11:28:36 +0900
commit2f92be21302db255f4357e95e9e1ce535b1a6a89 (patch)
treeb8134770de6ef51b53908a7d4c71f717d29bed71 /lib/rack
parentb4f95f709ac30473ef48ca3995fa21637dd0b78c (diff)
downloadrack-2f92be21302db255f4357e95e9e1ce535b1a6a89.tar.gz
1.9, lambda argument count has to match
Diffstat (limited to 'lib/rack')
-rw-r--r--lib/rack/urlmap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/urlmap.rb b/lib/rack/urlmap.rb
index 450f3d9d..4d6b8c62 100644
--- a/lib/rack/urlmap.rb
+++ b/lib/rack/urlmap.rb
@@ -19,7 +19,7 @@ module Rack
end
def remap(map)
- longest_path_first = lambda do |host, location, _, _|
+ longest_path_first = lambda do |(host, location, _, _)|
[host ? -host.size : NEGATIVE_INFINITY, -location.size]
end
@mapping = map.map { |location, app|