From 64faca82a6ef8c34a43f27a440cf2e7f6913d7e5 Mon Sep 17 00:00:00 2001 From: Johan Henriksson Date: Fri, 28 Aug 2020 14:56:15 +0200 Subject: [PATCH] properly encode input gzip as utf8 strings --- cowait/engine/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cowait/engine/utils.py b/cowait/engine/utils.py index 3e638afa..3cd58d40 100644 --- a/cowait/engine/utils.py +++ b/cowait/engine/utils.py @@ -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):