From 264beb3c7a22ed12f1fc21d086c99a437f9f7e96 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Fri, 28 Feb 2014 01:46:10 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20supe?= =?UTF-8?q?rTornado.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- superTornado.py | 1 + 1 file changed, 1 insertion(+) diff --git a/superTornado.py b/superTornado.py index e3438d1..1611115 100644 --- a/superTornado.py +++ b/superTornado.py @@ -48,6 +48,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') with open("image/temp.jpg", 'rb') as f: data = f.read() self.set_header('Content-type', 'image/jpg')