From 796a78dc2e0e162ae77283829b17b022b07da295 Mon Sep 17 00:00:00 2001 From: codl Date: Thu, 2 May 2019 00:57:45 +0200 Subject: [PATCH] fix broken imgproxy urls idk why this worked on python 3.5 but it doesn't work on 3.7 --- libforget/img_proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libforget/img_proxy.py b/libforget/img_proxy.py index 3d1c582..b34a11b 100644 --- a/libforget/img_proxy.py +++ b/libforget/img_proxy.py @@ -45,7 +45,7 @@ class ImgProxyCache(object): return base64.urlsafe_b64encode( '{}:{}'.format(url_hmac.hexdigest(), url) .encode('UTF-8') - ).strip(b'=') + ).strip(b'=').decode('UTF-8') def url_for(self, identifier): try: