mirror of https://github.com/rails/rails
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:
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
|
||||
|
|
Loading…
Reference in New Issue