Skip to content

Commit

Permalink
Merge pull request #170 from backtick-se/gzip_encoding_fix
Browse files Browse the repository at this point in the history
Properly encode input gzip as utf8 strings
  • Loading branch information
johanhenriksson authored Aug 28, 2020
2 parents d587ff4 + 64faca8 commit 6e16f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cowait/engine/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
def env_pack(value):
value = json.dumps(value).encode('utf-8')
value = gzip.compress(value)
return b64encode(value)
return b64encode(value).decode('utf-8')


def env_unpack(value):
Expand Down

0 comments on commit 6e16f9a

Please sign in to comment.