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:
parent
0f13f3bd29
commit
796a78dc2e
|
@ -45,7 +45,7 @@ class ImgProxyCache(object):
|
||||||
return base64.urlsafe_b64encode(
|
return base64.urlsafe_b64encode(
|
||||||
'{}:{}'.format(url_hmac.hexdigest(), url)
|
'{}:{}'.format(url_hmac.hexdigest(), url)
|
||||||
.encode('UTF-8')
|
.encode('UTF-8')
|
||||||
).strip(b'=')
|
).strip(b'=').decode('UTF-8')
|
||||||
|
|
||||||
def url_for(self, identifier):
|
def url_for(self, identifier):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue