Bugfix endless aiohttp streamreader (#5540)
This commit is contained in:
parent
c972e90580
commit
92858554e6
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue