aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-05-23 10:27:30 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-05-23 10:57:25 -0700
commitf1175448ec60d359ede10bc63c3d83a1c2515142 (patch)
treece0f9310f79fb3f62fc53a14e3f6325cb5c628db /actionpack
parentaaceca625da4be9e192e3c29a85ff523390c58b6 (diff)
downloadrails-f1175448ec60d359ede10bc63c3d83a1c2515142.tar.gz
rails-f1175448ec60d359ede10bc63c3d83a1c2515142.tar.bz2
rails-f1175448ec60d359ede10bc63c3d83a1c2515142.zip
pull request allocation up one frame
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index 8b4fd26ce2..9d7164eef2 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -683,7 +683,9 @@ module ActionDispatch
end
def call(env)
- @router.call(env)
+ req = request_class.new(env)
+ req.path_info = Journey::Router::Utils.normalize_path(req.path_info)
+ @router.serve(req)
end
def recognize_path(path, environment = {})