aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-08 15:41:36 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-08 15:41:36 -0700
commit246bfcb473dad7a33a8459f5bef9c62f18ed1f1d (patch)
tree775fab74d3e2229091ecd8b752c9ebe4b942117f /actionpack
parent5e81e6ca31aa0d2a38f8db5c8fe9bcbce98d9689 (diff)
downloadrails-246bfcb473dad7a33a8459f5bef9c62f18ed1f1d.tar.gz
rails-246bfcb473dad7a33a8459f5bef9c62f18ed1f1d.tar.bz2
rails-246bfcb473dad7a33a8459f5bef9c62f18ed1f1d.zip
whitespace
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/routing/redirection.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/routing/redirection.rb b/actionpack/lib/action_dispatch/routing/redirection.rb
index 3c1c4fadf6..d6987f4d09 100644
--- a/actionpack/lib/action_dispatch/routing/redirection.rb
+++ b/actionpack/lib/action_dispatch/routing/redirection.rb
@@ -24,7 +24,7 @@ module ActionDispatch
def serve(req)
req.check_path_parameters!
uri = URI.parse(path(req.path_parameters, req))
-
+
unless uri.host
if relative_path?(uri.path)
uri.path = "#{req.script_name}/#{uri.path}"
@@ -32,7 +32,7 @@ module ActionDispatch
uri.path = req.script_name.empty? ? "/" : req.script_name
end
end
-
+
uri.scheme ||= req.scheme
uri.host ||= req.host
uri.port ||= req.port unless req.standard_port?
@@ -124,7 +124,7 @@ module ActionDispatch
url_options[:script_name] = request.script_name
end
end
-
+
ActionDispatch::Http::URL.url_for url_options
end