Permalink
Browse files

deflater.rb - Make gzip's mtime parameter mandatory

  • Loading branch information...
1 parent 7f19d79 commit fd8b4362bdef4aba74c2fb304eec8819466413ed @qerub qerub committed with Jul 5, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/deflater.rb
@@ -29,7 +29,7 @@ def call(env)
end
end
- def self.gzip(body, mtime = Time.now)
+ def self.gzip(body, mtime)
io = StringIO.new
gzip = Zlib::GzipWriter.new(io)
gzip.mtime = mtime

0 comments on commit fd8b436

Please sign in to comment.