mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-16 13:46:31 +00:00
Switch iter_chunked to iter_chunks (#5798)
* Switch iter_chunked to iter_any * iter_chunks not iter_any
This commit is contained in:
parent
d051cbcafb
commit
5c1f7ed18d
@ -279,7 +279,7 @@ class APIIngress(CoreSysAttributes):
|
|||||||
try:
|
try:
|
||||||
response.headers["X-Accel-Buffering"] = "no"
|
response.headers["X-Accel-Buffering"] = "no"
|
||||||
await response.prepare(request)
|
await response.prepare(request)
|
||||||
async for data in result.content.iter_chunked(4096):
|
async for data, _ in result.content.iter_chunks():
|
||||||
await response.write(data)
|
await response.write(data)
|
||||||
|
|
||||||
except (
|
except (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user