Merge pull request #198 from codl/fix-imgproxy

fix broken imgproxy urls
This commit is contained in:
codl 2019-05-02 01:11:05 +02:00 committed by GitHub
commit 1374dda768
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: