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

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

* Set content_type in constructur
This commit is contained in:
Ole-Kenneth authored and Paulus Schoutsen committed 2017-05-16 09:11:44 -07:00
1 parent a7f933966b
commit 71ed17b836
1 file changed
+1 -1
+1 -1
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)