Opened 11 years ago
Closed 11 years ago
#20596 closed Bug (fixed)
Content-Type added incorrectly to test GET and HEAD requests
Reported by: | Tom Christie | Owned by: | nobody |
---|---|---|---|
Component: | Testing framework | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
RequestFactory incorrectly adds a CONTENT-TYPE of 'text/html' to GET and HEAD requests.
These requests don't contain a request body and shouldn't include a content-type header.
I've removed the appropriate lines and the tests run through identically to before the change.
See PR1270 - https://github.com/django/django/pull/1270
Note:
See TracTickets
for help on using tickets.
Fixed in https://github.com/django/django/commit/0f3f88ec945b2f6728b9ed04e27c5fa4bcc43898