Skip to content

Commit

Permalink
wb
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Dec 26, 2017
1 parent 773c591 commit bec2691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bakery/views/base.py
Expand Up @@ -115,7 +115,7 @@ def gzip_file(self, target_path, html):
)
if float(sys.version[:3]) >= 2.7:
kwargs['mtime'] = 0
with gzip.GzipFile(fileobj=data_buffer, mode="w") as f:
with gzip.GzipFile(fileobj=data_buffer, mode="wb") as f:
f.write(six.binary_type(html))

# Write that buffer out to the filesystem
Expand Down

0 comments on commit bec2691

Please sign in to comment.