Skip to content

Commit

Permalink
BytesIO
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Dec 26, 2017
1 parent 96b065e commit cb0ac4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bakery/views/base.py
Expand Up @@ -107,7 +107,7 @@ def gzip_file(self, target_path, html):
logger.debug("Building gzipped HTML file to %s" % target_path)

# Write GZIP data to an in-memory buffer
data_buffer = six.StringIO()
data_buffer = six.BytesIO()
kwargs = dict(
filename=path.basename(target_path),
mode='wb',
Expand Down

0 comments on commit cb0ac4c

Please sign in to comment.