fix broken imgproxy urls

idk why this worked on python 3.5 but it doesn't work on 3.7
This commit is contained in:
codl 2019-05-02 00:57:45 +02:00
parent 0f13f3bd29
commit 796a78dc2e
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 1 additions and 1 deletions

View File

@ -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: