1
0
mirror of https://github.com/django/django.git synced 2025-04-15 04:44:37 +00:00

Fixed broken link in django/core/handlers/asgi.py comment.

This commit is contained in:
Anders Kaseorg 2024-11-02 18:42:54 -07:00 committed by Mariusz Felisiak
parent d8f093908c
commit c28f821c90

View File

@ -326,8 +326,8 @@ class ASGIHandler(base.BaseHandler):
if response.streaming:
# - Consume via `__aiter__` and not `streaming_content` directly, to
# allow mapping of a sync iterator.
# - Use aclosing() when consuming aiter.
# See https://github.com/python/cpython/commit/6e8dcda
# - Use aclosing() when consuming aiter. See
# https://github.com/python/cpython/commit/6e8dcdaaa49d4313bf9fab9f9923ca5828fbb10e
async with aclosing(aiter(response)) as content:
async for part in content:
for chunk, _ in self.chunk_bytes(part):