#31810: test client populate request.headers
---------------------------------------------+------------------------
Reporter: bcail | Owner: nobody
Type: Uncategorized | Status: new
Component: Testing framework | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------------------------+------------------------
The test client doesn't seem to populate request.headers - if I pass a
header in a test, it gets into request.META but not request.headers.
Should that header get into request.headers as well?
This caused a problem for me when I wrote code that passed when deployed,
but then the tests failed because the header wasn't getting into
request.headers like it did when the project was deployed.
I'm attaching a django tests patch that shows the issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/31810>
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/048.a58d859f2a1c7b837db6bcb4461d7af6%40djangoproject.com.