From 7c6c9eae7f06a75ffd14737c065bda7a697578b2 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Thu, 16 Mar 2017 15:32:52 +0000 Subject: [PATCH] [WebUI] Fix error displaying tracker icons --- deluge/ui/web/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/web/server.py b/deluge/ui/web/server.py index f712be1e7..2897ae323 100644 --- a/deluge/ui/web/server.py +++ b/deluge/ui/web/server.py @@ -169,7 +169,7 @@ class Tracker(resource.Resource): if icon: request.setHeader(b'cache-control', b'public, must-revalidate, max-age=86400') - request.setHeader(b'content-type', icon.get_mimetype()) + request.setHeader(b'content-type', icon.get_mimetype().encode('utf8')) request.setResponseCode(http.OK) request.write(icon.get_data()) request.finish()