summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEFS <efs@amefs.net>2021-01-18 00:18:39 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2021-01-29 18:31:52 +0000
commita4da8d29f87b2835ead7ead064251f1845e6dc08 (patch)
treec6a57f182e59226d3386a4e254408b2d27c6c4a9
parent8ec5ca9d08c358fbcfe2aa0fbaf2b78cc7aa2490 (diff)
downloaddeluge-a4da8d29f87b2835ead7ead064251f1845e6dc08.zip
deluge-a4da8d29f87b2835ead7ead064251f1845e6dc08.tar.gz
deluge-a4da8d29f87b2835ead7ead064251f1845e6dc08.tar.bz2
[WebUI] Fix tracker icon download error
Encoutering an error when webui attempts to download tracker icon: Error occurred downloading file from "http://b'acg.rip'/": invalid hostname: b'acg.rip' Fixed by ensuring the request.tracker_name is decoded from bytes before looking up the icon name.
-rw-r--r--deluge/ui/web/server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/ui/web/server.py b/deluge/ui/web/server.py
index 192c2b7..d730e72 100644
--- a/deluge/ui/web/server.py
+++ b/deluge/ui/web/server.py
@@ -191,7 +191,7 @@ class Tracker(resource.Resource):
request.finish()
def render(self, request):
- d = self.tracker_icons.fetch(request.tracker_name)
+ d = self.tracker_icons.fetch(request.tracker_name.decode())
d.addCallback(self.on_got_icon, request)
return server.NOT_DONE_YET