From 5154f0d1df433d08e2874d5581b2d43cb85ba6d9 Mon Sep 17 00:00:00 2001 From: Joshua May Date: Sat, 14 Sep 2019 10:49:52 -0700 Subject: [PATCH] Can't get enough BYTES??? Have I got the commit for you! --- sirius/web/printer_print.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sirius/web/printer_print.py b/sirius/web/printer_print.py index 5f26f16..2bf8c42 100644 --- a/sirius/web/printer_print.py +++ b/sirius/web/printer_print.py @@ -102,7 +102,7 @@ def preview(user_id, username, printer_id): assert user_id == login.current_user.id assert username == login.current_user.username - message = flask.request.data + message = flask.request.data.decode('utf-8') pixels = image_encoding.default_pipeline( templating.default_template(message, from_name=login.current_user.username)) png = io.BytesIO() -- 2.47.3