fix bug in the tracker icons resource

This commit is contained in:
Damien Churchill 2009-10-03 20:44:19 +00:00
parent d28e5998b9
commit fbd6db859f
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ class Tracker(resource.Resource):
"public, must-revalidate, max-age=86400")
if filename.endswith(".ico"):
request.setHeader("content-type", "image/x-icon")
elif filename.endwith(".png"):
elif filename.endswith(".png"):
request.setHeader("content-type", "image/png")
data = open(filename, "rb")
request.setResponseCode(http.OK)