From e42a199d4f356a1a6cf6f7079becce0f02a1f90b Mon Sep 17 00:00:00 2001 From: sidya82 Date: Fri, 28 Feb 2014 02:57:46 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20supe?= =?UTF-8?q?rTornado.py=20=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20video.?= =?UTF-8?q?html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- superTornado.py | 2 +- video.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/superTornado.py b/superTornado.py index e25b252..295aa50 100644 --- a/superTornado.py +++ b/superTornado.py @@ -78,7 +78,7 @@ class AJAXHandler(BaseHandler): def post(self): with open("image/temp.jpg", 'rb') as f: data = f.read() - self.set_header('Content-type', 'image/jpg') + self.set_header('Content-type', 'image/jpeg') self.write(data) self.finish() diff --git a/video.html b/video.html index 7e32896..1c93858 100644 --- a/video.html +++ b/video.html @@ -11,7 +11,7 @@ $.ajax({ type: "POST", url:'/ajax', - contentType: "image/jpg", + contentType: "image/jpeg", success: function(data){ $('#image').html(data)} });