#32389 closed Bug (fixed)
ResponseHeaders crashes when data is not a mapping.
Description ¶
>>> 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)
comment:1 by , 4 years ago
Cc: | 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 |
comment:2 by , 4 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
Thanks, good catch. PR
Bug in bcc2befd0e9c1885e45b46d0b0bcdc11def8b249.