Opened 7 years ago
Closed 7 years ago
#29553 closed Bug (fixed)
Test client should set Content-Length header to a string rather than integer
Description ¶
When using the Django test client:
(Pdb) type(request.META["CONTENT_LENGTH"]) <class 'int'>
When using runserver or other WSGI application servers:
(Pdb) type(request.META["CONTENT_LENGTH"]) <class 'str'>
Change History (2)
comment:1 by , 7 years ago
Has patch: | set |
---|---|
Summary: | Test client handling of CONTENT_LENGTH is different from runserver and wsgi servers → Test client should set Content-Length header to a string rather than integer |
Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.
PR