Please sign in to comment.
Fixed Rack::Deflater to handle responses with Last-Modified header
* There was a bug when performing gzip compression where the Last-Modified response header was assumed to be a Time object, and passed directly to Zlib::GzipWriter#mtime, causing an exception since it is always a String. This fix parses the Last-Modified header using Time.httpdate and returns a Time obejct, which can be safely passed to Zlib::GzipWriter#mtime.
- Loading branch information...
Showing with 19 additions and 1 deletion.