Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set tempfile to binary mode to prevent corrupted gzip on windows #54

Merged
merged 1 commit into from
Jan 1, 2014

Conversation

jordanwhite
Copy link
Contributor

It works fine on Linux but when attempting a push to s3 on Windows with Ruby 1.9.3, the gzipped files come out corrupted. Similar to this issue: http://stackoverflow.com/questions/3689963/ruby-zlibgzip-not-working-properly

Switching the tempfile to binary mode solves this issue and produces proper gzip output.

In conjunction with this pull request for filey-diff: laurilehmijoki/filey-diff#8

@laurilehmijoki
Copy link
Owner

Thanks! I've just released this pull request in the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants