diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-05 23:40:56 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-05 23:40:56 +0100 |
commit | e55d70a380a8d7408cc495086ff49af6c6e406d0 (patch) | |
tree | ba3a1d2d1827e15ef26a7ac59b2429d6454821fe /actionpack/lib/action_dispatch/routing | |
parent | b3900a29eb89b6b4613966c03282997fcc0cd6ac (diff) | |
download | rails-e55d70a380a8d7408cc495086ff49af6c6e406d0.tar.gz rails-e55d70a380a8d7408cc495086ff49af6c6e406d0.tar.bz2 rails-e55d70a380a8d7408cc495086ff49af6c6e406d0.zip |
redirect in routes takes port into account [#3653 status:resolved]
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 8b46790fd2..2a25a8c4ea 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -208,6 +208,7 @@ module ActionDispatch uri = URI.parse(path_proc.call(req.params)) uri.scheme ||= req.scheme uri.host ||= req.host + uri.port ||= req.port unless req.port == 80 headers = { 'Location' => uri.to_s, |