From 22c3d014aaf9198863f1dc321eb8176972b051e6 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 5 Nov 2016 15:29:22 -0700 Subject: [PATCH] Remove chunked encoding (#4230) --- homeassistant/components/camera/__init__.py | 1 - homeassistant/components/camera/ffmpeg.py | 1 - homeassistant/components/camera/mjpeg.py | 1 - homeassistant/components/camera/synology.py | 1 - 4 files changed, 4 deletions(-) diff --git a/homeassistant/components/camera/__init__.py b/homeassistant/components/camera/__init__.py index d02e7954349..6724598419f 100644 --- a/homeassistant/components/camera/__init__.py +++ b/homeassistant/components/camera/__init__.py @@ -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): diff --git a/homeassistant/components/camera/ffmpeg.py b/homeassistant/components/camera/ffmpeg.py index 8e238bfdea7..c3f0ffbfe0b 100644 --- a/homeassistant/components/camera/ffmpeg.py +++ b/homeassistant/components/camera/ffmpeg.py @@ -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) diff --git a/homeassistant/components/camera/mjpeg.py b/homeassistant/components/camera/mjpeg.py index 81759fa86df..e8799d1be34 100644 --- a/homeassistant/components/camera/mjpeg.py +++ b/homeassistant/components/camera/mjpeg.py @@ -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) diff --git a/homeassistant/components/camera/synology.py b/homeassistant/components/camera/synology.py index 4abdf8d22dd..4ca63c16d7d 100644 --- a/homeassistant/components/camera/synology.py +++ b/homeassistant/components/camera/synology.py @@ -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)