Project

General

Profile

« Previous | Next » 

Revision 0aaa15f6

Added by alanwu (Alan Wu) over 4 years ago

[ruby/zlib] Fix setting mtime to zero in GzipWriter

Before this change, it was not possible to write out zero for the
timestamp part of a Gzip file's header, as calling GzipWriter#mtime with
zero was ignored.

Judging from the docs for GzipWriter#mtime=, it should be possible to
indicate that no timestamp is available by calling the method with zero.

https://github.com/ruby/zlib/commit/310be39cac