Permalink
Browse files

Wrap string body in an array

  • Loading branch information...
1 parent b46c907 commit c86ec82cf63938f691c9ae4f5a4d72bea9e8a9c7 @jeremy jeremy committed May 20, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/middleware/show_exceptions.rb
@@ -102,7 +102,7 @@ def status_code(exception)
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

0 comments on commit c86ec82

Please sign in to comment.