From eb6434e84ea8a9d8ba548a197de25115608fc09d Mon Sep 17 00:00:00 2001 From: sidya82 Date: Fri, 28 Feb 2014 01:54:29 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superTornado.py b/superTornado.py index 9342a43..329b49b 100644 --- a/superTornado.py +++ b/superTornado.py @@ -51,7 +51,7 @@ class VideoHandler(BaseHandler): return name = tornado.escape.xhtml_escape(self.current_user) urlretrieve('http://test:a@192.168.1.15/image.jpg?cidx=791836195', 'image/temp.jpg') - self.render("video.html") + self.write("video.html") with open("image/temp.jpg", 'rb') as f: data = f.read() self.set_header('Content-type', 'image/jpg')