Skip to content

Commit 53d947a

Browse files
committed
set tempfile to binary mode to prevent corrupted gzip on windows
1 parent f48ccdc commit 53d947a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/filey-diff/data-sources/aws_sdk_s3.rb

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def last_modified_and_md5_from_gzipped(s3_object, path)
8686
[s3_object.last_modified, md5]
8787
else
8888
tempfile = Tempfile.new(File.basename(path))
89+
tempfile.binmode
8990
tempfile.write s3_object_contents
9091
tempfile.close
9192

0 commit comments

Comments
 (0)