diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-24 16:39:47 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-24 16:39:47 -0700 |
commit | d4e1f58fd8ce70ae356c630dad68926ad6711fe3 (patch) | |
tree | de16f33fad02488653c434750d3c892bda54567e /actionpack/lib | |
parent | cccc759ff7ede6e2d3c15fdad7574c536fb275e8 (diff) | |
download | rails-d4e1f58fd8ce70ae356c630dad68926ad6711fe3.tar.gz rails-d4e1f58fd8ce70ae356c630dad68926ad6711fe3.tar.bz2 rails-d4e1f58fd8ce70ae356c630dad68926ad6711fe3.zip |
remove another `@env` access
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/http/url.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/url.rb b/actionpack/lib/action_dispatch/http/url.rb index 096fe2fcf8..e413954066 100644 --- a/actionpack/lib/action_dispatch/http/url.rb +++ b/actionpack/lib/action_dispatch/http/url.rb @@ -348,7 +348,7 @@ module ActionDispatch end def server_port - @env['SERVER_PORT'].to_i + get_header('SERVER_PORT').to_i end # Returns the \domain part of a \host, such as "rubyonrails.org" in "www.rubyonrails.org". You can specify |