From f521e92c6f09b377f71809afced66e8072dfd8c0 Mon Sep 17 00:00:00 2001 From: Christopher Usher Date: Fri, 8 Nov 2024 14:23:41 -0800 Subject: [PATCH] also apply fix to get_thumbnail --- thrimshim/thrimshim/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thrimshim/thrimshim/main.py b/thrimshim/thrimshim/main.py index 48b94f2..222a840 100644 --- a/thrimshim/thrimshim/main.py +++ b/thrimshim/thrimshim/main.py @@ -765,7 +765,7 @@ def get_thumbnail(ident): if event['thumbnail_mode'] != 'NONE' and event['thumbnail_image']: logging.info('Thumbnail for event {} fetched'.format(ident)) - return flask.Response(event['thumbnail_image'], mimetype='image/png') + return flask.Response(bytes(event['thumbnail_image']), mimetype='image/png') else: return '', 404