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

Change History (1)

comment:1 by Marc Tamlyn, 11 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top