#31810: HttpRequest.headers doesn't contain headers without HTTP prefix.
-------------------------------+--------------------------------------
     Reporter:  bcail          |                    Owner:  nobody
         Type:  Uncategorized  |                   Status:  closed
    Component:  HTTP handling  |                  Version:  master
     Severity:  Normal         |               Resolution:  invalid
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by bcail):

 Thanks felixxm. Did this change since django 2.2? On django 2.2, when I
 pass a custom header in the request, it does show up in request.headers,
 even though I'm not putting an HTTP_ prefix on the header. Is it showing
 up in request.headers because django is adding HTTP_ to the custom header?
 I do see that django added HTTP_ to the header in request.META, but in
 request.headers it shows without the HTTP_.

 It feels like if django is adding HTTP_ to the header, then the test
 client should also add HTTP_ to the header?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31810#comment:2>
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/063.6e6684e7bca7e5f15b2a45504095ed6d%40djangoproject.com.

Reply via email to