Changes between Initial Version and Version 1 of Ticket #30565
- Timestamp:
- Jun 14, 2019, 1:16:02 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30565
- Property Type Uncategorized → Cleanup/optimization
- Property Version 2.2 → master
-
Ticket #30565 – Description
initial v1 38 38 new_value = iter_content() 39 39 }}} 40 41 Here is the current code for `StreamingHttpResponse._set_streaming_content()`: 42 43 {{{ 44 #!python 45 def _set_streaming_content(self, value): 46 # Ensure we can never iterate on "value" more than once. 47 self._iterator = iter(value) 48 if hasattr(value, 'close'): 49 self._closable_objects.append(value) 50 }}} 51 52 (from: https://github.com/django/django/blob/1564e42ad397021093585147875a21dae1a3b3fc/django/http/response.py#L376-L380) 53