Remove problematic call to decode().
This commit is contained in:
parent
2d078b0004
commit
a45fcb395b
1 changed files with 1 additions and 1 deletions
|
@ -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')}
|
||||
|
|
Loading…
Reference in a new issue