diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-05-20 16:00:50 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-05-20 16:01:21 -0700 |
commit | c86ec82cf63938f691c9ae4f5a4d72bea9e8a9c7 (patch) | |
tree | 2c2a0a01911ac1653bcc5dad0442a2ab65246dc4 /actionpack/lib/action_dispatch/middleware/show_exceptions.rb | |
parent | b46c9071c382b48c5ff349fbe61854683663a866 (diff) | |
download | rails-c86ec82cf63938f691c9ae4f5a4d72bea9e8a9c7.tar.gz rails-c86ec82cf63938f691c9ae4f5a4d72bea9e8a9c7.tar.bz2 rails-c86ec82cf63938f691c9ae4f5a4d72bea9e8a9c7.zip |
Wrap string body in an array
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/show_exceptions.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/show_exceptions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb index 108355da63..4d598669c7 100644 --- a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb +++ b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb @@ -102,7 +102,7 @@ module ActionDispatch end def render(status, body) - [status, {'Content-Type' => 'text/html', 'Content-Length' => body.length.to_s}, body] + [status, {'Content-Type' => 'text/html', 'Content-Length' => body.length.to_s}, [body]] end def public_path |