Opened 2 years ago

Closed 2 years ago

#20596 closed Bug (fixed)

Content-Type added incorrectly to test GET and HEAD requests

Reported by: tomchristie Owned by: nobody
Component: Testing framework Version: master
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

Change History (1)

comment:1 Changed 2 years ago by mjtamlyn

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.
Back to Top