Project

General

Profile

« Previous | Next » 

Revision 0aaa15f6

Added by alanwu (Alan Wu) over 5 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