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:
1 parent
a7f933966b
commit
71ed17b836
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user