Remove problematic call to decode().

This commit is contained in:
Ben Sturmfels 2021-11-30 17:35:55 +11:00
parent 2d078b0004
commit a45fcb395b
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -22,7 +22,7 @@ def sitefundraiser(request):
if conservancy.settings.FORCE_CANONICAL_HOSTNAME:
_HOST_URL_VAR = {'host_url': 'https://' + conservancy.settings.FORCE_CANONICAL_HOSTNAME}
def host_url(request):
return _HOST_URL_VAR.decode('utf-8')
return _HOST_URL_VAR
else:
def host_url(request):
return {'host_url': request.build_absolute_uri('/').rstrip('/').decode('utf-8')}