mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Bugfix endless aiohttp streamreader (#5540)
This commit is contained in:
parent
c972e90580
commit
92858554e6
@ -87,6 +87,8 @@ def async_aiohttp_proxy_stream(hass, request, stream_coro, buffer_size=102400,
|
||||
|
||||
while True:
|
||||
data = yield from stream.content.read(buffer_size)
|
||||
if not data:
|
||||
break
|
||||
response.write(data)
|
||||
|
||||
except asyncio.TimeoutError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user