diff options
author | Matthew Draper <matthew@trebex.net> | 2014-07-14 23:33:48 +0930 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2014-07-14 23:33:48 +0930 |
commit | 7b52a26bc442e02314051a1d8b26f64ea7fbcbf2 (patch) | |
tree | 0b879c63676a29b577f9e33ec7c6e0b45326f7ee /actionpack/lib | |
parent | 55c1b1dc5adb86920b66e6acc30ddd41a7da3ce8 (diff) | |
parent | f49d20ef36c2d339e7a988fdc52981cdb95af22f (diff) | |
download | rails-7b52a26bc442e02314051a1d8b26f64ea7fbcbf2.tar.gz rails-7b52a26bc442e02314051a1d8b26f64ea7fbcbf2.tar.bz2 rails-7b52a26bc442e02314051a1d8b26f64ea7fbcbf2.zip |
Merge pull request #16168 from greysteil/stash-path-info
Stash original path in `ShowExceptions` middleware
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/show_exceptions.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb index 1d4f0f89a6..f0779279c1 100644 --- a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb +++ b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb @@ -42,6 +42,7 @@ module ActionDispatch wrapper = ExceptionWrapper.new(env, exception) status = wrapper.status_code env["action_dispatch.exception"] = wrapper.exception + env["action_dispatch.original_path"] = env["PATH_INFO"] env["PATH_INFO"] = "/#{status}" response = @exceptions_app.call(env) response[1]['X-Cascade'] == 'pass' ? pass_response(status) : response |