diff --git a/superTornado.py b/superTornado.py index b328a16..1f8b370 100644 --- a/superTornado.py +++ b/superTornado.py @@ -50,7 +50,7 @@ class VideoHandler(BaseHandler): self.redirect("/") return 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: data = f.read() self.set_header('Content-type', 'image/jpg')