mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
fix bug in the tracker icons resource
This commit is contained in:
parent
d28e5998b9
commit
fbd6db859f
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ class Tracker(resource.Resource):
|
||||||
"public, must-revalidate, max-age=86400")
|
"public, must-revalidate, max-age=86400")
|
||||||
if filename.endswith(".ico"):
|
if filename.endswith(".ico"):
|
||||||
request.setHeader("content-type", "image/x-icon")
|
request.setHeader("content-type", "image/x-icon")
|
||||||
elif filename.endwith(".png"):
|
elif filename.endswith(".png"):
|
||||||
request.setHeader("content-type", "image/png")
|
request.setHeader("content-type", "image/png")
|
||||||
data = open(filename, "rb")
|
data = open(filename, "rb")
|
||||||
request.setResponseCode(http.OK)
|
request.setResponseCode(http.OK)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue