Fixed typo in django/middleware/gzip.py.
Some checks are pending
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run

This commit is contained in:
Mohamed Amine Mahmoud 2025-07-23 14:54:10 +01:00 committed by Sarah Boyce
parent d90bea1b06
commit 485f483d49

View file

@ -34,10 +34,10 @@ class GZipMiddleware(MiddlewareMixin):
if response.is_async:
# pull to lexical scope to capture fixed reference in case
# streaming_content is set again later.
orignal_iterator = response.streaming_content
original_iterator = response.streaming_content
async def gzip_wrapper():
async for chunk in orignal_iterator:
async for chunk in original_iterator:
yield compress_string(
chunk,
max_random_bytes=self.max_random_bytes,