mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-08 18:39:33 +00:00
Fix stream error with aiohttp >= 3 (#579)
* Fix stream error with aiohttp >= 3 * Update proxy.py * Update proxy.py * Update proxy.py * Update proxy.py * Update proxy.py * Update proxy.py
This commit is contained in:
@@ -79,14 +79,10 @@ class APIProxy(CoreSysAttributes):
|
||||
while True:
|
||||
data = await client.content.read(10)
|
||||
if not data:
|
||||
await response.write_eof()
|
||||
break
|
||||
await response.write(data)
|
||||
|
||||
except aiohttp.ClientError:
|
||||
await response.write_eof()
|
||||
|
||||
except asyncio.CancelledError:
|
||||
pass
|
||||
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user