diff options
author | Christoffer Sawicki <christoffer.sawicki@gmail.com> | 2008-07-05 02:23:45 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2008-07-06 14:18:30 +0200 |
commit | fd8b4362bdef4aba74c2fb304eec8819466413ed (patch) | |
tree | 2e109034417844858fe836e679eed9d5dab99de4 | |
parent | 7f19d794a33bea1f31dbe285ef64d984cb780f22 (diff) | |
download | rack-fd8b4362bdef4aba74c2fb304eec8819466413ed.tar.gz |
deflater.rb - Make gzip's mtime parameter mandatory
-rw-r--r-- | lib/rack/deflater.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/deflater.rb b/lib/rack/deflater.rb index ffb261b2..1341eece 100644 --- a/lib/rack/deflater.rb +++ b/lib/rack/deflater.rb @@ -29,7 +29,7 @@ class Deflater 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 |