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:
parent
a7f933966b
commit
71ed17b836
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue