[WebUI] Fix error displaying tracker icons
This commit is contained in:
parent
036154fc36
commit
7c6c9eae7f
|
@ -169,7 +169,7 @@ class Tracker(resource.Resource):
|
||||||
if icon:
|
if icon:
|
||||||
request.setHeader(b'cache-control',
|
request.setHeader(b'cache-control',
|
||||||
b'public, must-revalidate, max-age=86400')
|
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.setResponseCode(http.OK)
|
||||||
request.write(icon.get_data())
|
request.write(icon.get_data())
|
||||||
request.finish()
|
request.finish()
|
||||||
|
|
Loading…
Reference in New Issue