lib/rack/urlmap.rb in rack-0.1.0 vs lib/rack/urlmap.rb in rack-0.2.0
- old
+ new
@@ -8,10 +8,10 @@
# PATH_INFO. This should be taken care of when you need to
# reconstruct the URL in order to create links.
#
# URLMap dispatches in such a way that the longest paths are tried
# first, since they are most specific.
-
+
class URLMap
def initialize(map)
@mapping = map.map { |location, app|
if location =~ %r{\Ahttps?://(.*?)(/.*)}
host, location = $1, $2