cdn

Log | Files | Refs | Activity

commit a9369939a62e73fe3b9579a14f3190f090b911ba
parent 714f24b134f484bb9868385bfe7d36e3bd52a8f4
Author: Amit Dutta <mail@amit.is-a.dev>
Date:   Thu,  3 Sep 2026 18:53:34 +0530

Change stream generator to use aiter_bytes
Diffstat:
Mapp/main.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/main.py b/app/main.py @@ -55,7 +55,7 @@ async def stream_raw(path: str): async def stream_generator(): try: - async for chunk in r.aiter_raw(): + async for chunk in r.aiter_bytes(): yield chunk finally: await client.aclose() @@ -81,7 +81,7 @@ async def download_file(path: str): async def stream_generator(): try: - async for chunk in r.aiter_raw(): + async for chunk in r.aiter_bytes(): yield chunk finally: await client.aclose()
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror