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)} });