1
0
mirror of https://github.com/django/django.git synced 2025-06-03 18:49:12 +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: if response.streaming:
# - Consume via `__aiter__` and not `streaming_content` directly, to # - Consume via `__aiter__` and not `streaming_content` directly, to
# allow mapping of a sync iterator. # allow mapping of a sync iterator.
# - Use aclosing() when consuming aiter. # - Use aclosing() when consuming aiter. See
# See https://github.com/python/cpython/commit/6e8dcda # https://github.com/python/cpython/commit/6e8dcdaaa49d4313bf9fab9f9923ca5828fbb10e
async with aclosing(aiter(response)) as content: async with aclosing(aiter(response)) as content:
async for part in content: async for part in content:
for chunk, _ in self.chunk_bytes(part): for chunk, _ in self.chunk_bytes(part):