Remove chunked encoding (#4230)
parent
f367c49fb9
commit
28861221ae
|
@ -101,7 +101,6 @@ class Camera(Entity):
|
|||
|
||||
response.content_type = ('multipart/x-mixed-replace; '
|
||||
'boundary=--jpegboundary')
|
||||
response.enable_chunked_encoding()
|
||||
yield from response.prepare(request)
|
||||
|
||||
def write(img_bytes):
|
||||
|
|
|
@ -75,7 +75,6 @@ class FFmpegCamera(Camera):
|
|||
|
||||
response = web.StreamResponse()
|
||||
response.content_type = 'multipart/x-mixed-replace;boundary=ffserver'
|
||||
response.enable_chunked_encoding()
|
||||
|
||||
yield from response.prepare(request)
|
||||
|
||||
|
|
|
@ -112,7 +112,6 @@ class MjpegCamera(Camera):
|
|||
|
||||
response = web.StreamResponse()
|
||||
response.content_type = stream.headers.get(CONTENT_TYPE_HEADER)
|
||||
response.enable_chunked_encoding()
|
||||
|
||||
yield from response.prepare(request)
|
||||
|
||||
|
|
|
@ -271,7 +271,6 @@ class SynologyCamera(Camera):
|
|||
|
||||
response = web.StreamResponse()
|
||||
response.content_type = stream.headers.get(CONTENT_TYPE_HEADER)
|
||||
response.enable_chunked_encoding()
|
||||
|
||||
yield from response.prepare(request)
|
||||
|
||||
|
|
Loading…
Reference in New Issue