ResponseHeaders crashes when data is not a mapping.
>>> from django.http.response import ResponseHeaders
>>> headers = ResponseHeaders((('X-Foo', 'bar'),))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "[...]/django/django/http/response.py", line 36, in __init__
for k, v in CaseInsensitiveMapping._destruct_iterable_mapping_values(data)
AttributeError: type object 'CaseInsensitiveMapping' has no attribute '_destruct_iterable_mapping_values'
_destruct_iterable_mapping_values
is used as a method of CaseInsensitiveMapping
, but it is a separate function.
Change History
(4)
Cc: |
Tom Carrick added
|
Component: |
Uncategorized → HTTP handling
|
Severity: |
Normal → Release blocker
|
Summary: |
ResponseHeaders initialization crashes when provided data is an iterable of tuple pairs → ResponseHeaders crashes when data is not a mapping.
|
Triage Stage: |
Unreviewed → Accepted
|
Version: |
master → 3.2
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Thanks, good catch. PR
Bug in bcc2befd0e9c1885e45b46d0b0bcdc11def8b249.