Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed that some 500 rescues would cause 500's themselves because the …

…response had not yet been generated #6329 [cmselmer]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5241 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 2e766b159f597f4da55a4cd57c20a9d8c34dd3e7 1 parent 3c6b7a2
@dhh dhh authored
View
2  actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Fixed that some 500 rescues would cause 500's themselves because the response had not yet been generated #6329 [cmselmer]
+
* respond_to :html doesn't assume .rhtml. #6281 [Hampton Catlin]
* Fixed some deprecation warnings in ActionPack [Rick Olson]
View
2  actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml
@@ -41,4 +41,4 @@
<h2 style="margin-top: 30px">Response</h2>
-<b>Headers</b>: <%=h response.headers.inspect.gsub(/,/, ",\n") %><br/>
+<b>Headers</b>: <%=h response ? response.headers.inspect.gsub(/,/, ",\n") : "None" %><br/>
Please sign in to comment.
Something went wrong with that request. Please try again.