diff --git a/CHANGELOG.md b/CHANGELOG.md index c1d5a135e..8d2edd9cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Web UI - Fix TypeError in Peers Tab setting country flag. +- Fix reverse proxy header TypeError (#3260). ### Documentation diff --git a/deluge/ui/web/server.py b/deluge/ui/web/server.py index 3dceaf6ba..c2a0df12d 100644 --- a/deluge/ui/web/server.py +++ b/deluge/ui/web/server.py @@ -571,7 +571,7 @@ class TopLevel(resource.Resource): def getChildWithDefault(self, path, request): # NOQA: N802 # Calculate the request base header = request.getHeader(b'x-deluge-base') - base = header if header else component.get('DelugeWeb').base + base = header.decode('utf-8') if header else component.get('DelugeWeb').base # validate the base parameter if not base: