[WebUI] Fix error displaying tracker icons

This commit is contained in:
Calum Lind 2017-03-16 15:32:52 +00:00
parent 036154fc36
commit 7c6c9eae7f
1 changed files with 1 additions and 1 deletions

View File

@ -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()