mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Routing Mapper with % interpolation on Ruby 1.9.1 fixed [#3837 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
committed by
José Valim
parent
95eadb39bd
commit
afdf52402e
@@ -207,8 +207,7 @@ module ActionDispatch
|
||||
|
||||
lambda do |env|
|
||||
req = Request.new(env)
|
||||
|
||||
uri = URI.parse(path_proc.call(req.params.symbolize_keys))
|
||||
uri = URI.parse(path_proc.call(req.symbolized_path_parameters))
|
||||
uri.scheme ||= req.scheme
|
||||
uri.host ||= req.host
|
||||
uri.port ||= req.port unless req.port == 80
|
||||
|
||||
Reference in New Issue
Block a user