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...
1 parent cda3d89 commit 67cda1f54ef5117404190fe3742b0c2bc5378f6f @jeremy jeremy committed Dec 18, 2006
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

0 comments on commit 67cda1f

Please sign in to comment.