Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4125

Show
Ignore:
Timestamp:
04/01/06 20:41:53 (2 years ago)
Author:
david
Message:

Fixed fragment caching of binary data on Windows (closes #4493) [bellis@deepthought.org]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r4122 r4125  
    11*SVN* 
     2 
     3* Fixed fragment caching of binary data on Windows #4493 [bellis@deepthought.org] 
    24 
    35* Applied Prototype $() performance patches (#4465, #4477) and updated script.aculo.us [Sam Stephenson, Thomas Fuchs] 
  • trunk/actionpack/lib/action_controller/caching.rb

    r3738 r4125  
    417417 
    418418        def read(name, options = nil) #:nodoc: 
    419           IO.read(real_file_path(name)) rescue nil 
     419          File.open(real_file_path(name), 'rb') { |f| f.read } rescue nil 
    420420        end 
    421421