fix lists, handle async requests
This commit is contained in:
parent
39ea0437df
commit
d451eb3063
9 changed files with 25 additions and 30 deletions
|
|
@ -160,7 +160,6 @@ class IconHandler(tornado.web.RequestHandler):
|
|||
|
||||
if type_ not in ('cover', 'preview'):
|
||||
self.set_status(404)
|
||||
self.finish()
|
||||
return
|
||||
|
||||
self.set_header('Content-Type', 'image/jpeg')
|
||||
|
|
@ -168,7 +167,6 @@ class IconHandler(tornado.web.RequestHandler):
|
|||
response = yield tornado.gen.Task(get_icon, self._app, id, type_, size)
|
||||
if not response:
|
||||
self.set_status(404)
|
||||
self.finish()
|
||||
return
|
||||
if self._finished:
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue