Permalink
Browse files

Fixed fragment caching of binary data on Windows (closes #4493) [bell…

…is@deepthought.org]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4125 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 12c5287 commit dc87eba0628f88775e999cdefca945683c52e740 @dhh dhh committed Apr 1, 2006
Showing with 3 additions and 1 deletion.
  1. +2 −0 actionpack/CHANGELOG
  2. +1 −1 actionpack/lib/action_controller/caching.rb
@@ -1,5 +1,7 @@
*SVN*
+* Fixed fragment caching of binary data on Windows #4493 [bellis@deepthought.org]
+
* Applied Prototype $() performance patches (#4465, #4477) and updated script.aculo.us [Sam Stephenson, Thomas Fuchs]
* Added automated timestamping to AssetTagHelper methods for stylesheets, javascripts, and images when Action Controller is run under Rails [DHH]. Example:
@@ -416,7 +416,7 @@ def write(name, value, options = nil) #:nodoc:
end
def read(name, options = nil) #:nodoc:
- IO.read(real_file_path(name)) rescue nil
+ File.open(real_file_path(name), 'rb') { |f| f.read } rescue nil
end
def delete(name, options) #:nodoc:

0 comments on commit dc87eba

Please sign in to comment.