#32389: ResponseHeaders initialization crashes when provided data is an 
iterable of
tuple pairs
------------------------------------------+--------------------------------
               Reporter:  Illia Volochii  |          Owner:  Illia Volochii
                   Type:  Bug             |         Status:  assigned
              Component:  Uncategorized   |        Version:  master
               Severity:  Normal          |       Keywords:
           Triage Stage:  Unreviewed      |      Has patch:  1
    Needs documentation:  0               |    Needs tests:  0
Patch needs improvement:  0               |  Easy pickings:  0
                  UI/UX:  0               |
------------------------------------------+--------------------------------
 {{{
 >>> 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.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32389>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.179de906b4ee77c7eeb4d2120e6b4440%40djangoproject.com.

Reply via email to