diff options
| author | Mohamed Amine Mahmoud <44852072+MedAmineMahmoud@users.noreply.github.com> | 2025-07-23 14:54:10 +0100 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-07-24 08:39:07 +0200 |
| commit | 485f483d49144a2ea5401442bc3b937a370b3ca6 (patch) | |
| tree | cce20643a73ddc1f9f756b3a86fc9653f2605133 | |
| parent | d90bea1b067e01de91644b61383732386e1434f7 (diff) | |
Fixed typo in django/middleware/gzip.py.
| -rw-r--r-- | django/middleware/gzip.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/middleware/gzip.py b/django/middleware/gzip.py index 45be6ccb43..7ccd00ac19 100644 --- a/django/middleware/gzip.py +++ b/django/middleware/gzip.py @@ -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, |
