Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rollback accidental commit from [5686].

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-pre-release@5743 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 67cda1f54ef5117404190fe3742b0c2bc5378f6f 1 parent cda3d89
@jeremy jeremy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/caching.rb
View
2  actionpack/lib/action_controller/caching.rb
@@ -135,7 +135,7 @@ def cache_page(content = nil, options = {})
private
def caching_allowed
- request.get? && response.headers['Status'].to_i == 200
+ !request.post? && response.headers['Status'] && response.headers['Status'].to_i < 400
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.