Add Content-type: image/jpeg for camera proxy ()

* Add Content-type: image/jpeg for camera proxy

* Set content_type in constructur
This commit is contained in:
Ole-Kenneth 2017-05-16 18:11:44 +02:00 committed by Paulus Schoutsen
parent a7f933966b
commit 71ed17b836

View file

@ -269,7 +269,7 @@ class CameraImageView(CameraView):
image = yield from camera.async_camera_image()
if image:
return web.Response(body=image)
return web.Response(body=image, content_type='image/jpeg')
return web.Response(status=500)