modifié: superTornado.py
This commit is contained in:
parent
140490110a
commit
b5c334bd26
@ -50,7 +50,7 @@ class VideoHandler(BaseHandler):
|
|||||||
self.redirect("/")
|
self.redirect("/")
|
||||||
return
|
return
|
||||||
name = tornado.escape.xhtml_escape(self.current_user)
|
name = tornado.escape.xhtml_escape(self.current_user)
|
||||||
urlretrieve('http://test:a@192.168.1.15/image.jpg?cidx=791836195', 'temp.jpg')
|
urlretrieve('http://test:a@192.168.1.15/image.jpg?cidx=791836195', 'image/temp.jpg')
|
||||||
with open("image/temp.jpg", 'rb') as f:
|
with open("image/temp.jpg", 'rb') as f:
|
||||||
data = f.read()
|
data = f.read()
|
||||||
self.set_header('Content-type', 'image/jpg')
|
self.set_header('Content-type', 'image/jpg')
|
||||||
|
Reference in New Issue
Block a user