ruby / zlib

Ruby interface for the zlib compression/decompression library
Other
50 stars 35 forks source link

Fix setting mtime to zero in GzipWriter #10

Closed XrXr closed 5 years ago

XrXr commented 5 years ago

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.