mirror of
https://github.com/home-assistant/core.git
synced 2025-08-13 17:45:19 +02:00
Bugfix endless aiohttp streamreader (#5540)
This commit is contained in:
@@ -87,6 +87,8 @@ def async_aiohttp_proxy_stream(hass, request, stream_coro, buffer_size=102400,
|
|||||||
|
|
||||||
while True:
|
while True:
|
||||||
data = yield from stream.content.read(buffer_size)
|
data = yield from stream.content.read(buffer_size)
|
||||||
|
if not data:
|
||||||
|
break
|
||||||
response.write(data)
|
response.write(data)
|
||||||
|
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
|
Reference in New Issue
Block a user