Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove incorrect CONTENT_TYPE header from GET and HEAD requests

  • Loading branch information...
commit 1b19f9e9e7db5f45c44e840ca709b1566a989efa 1 parent adeec00
Tom Christie tomchristie authored
Showing with 0 additions and 2 deletions.
  1. +0 −2  django/test/client.py
2  django/test/client.py
View
@@ -272,7 +272,6 @@ def get(self, path, data={}, **extra):
parsed = urlparse(path)
r = {
- 'CONTENT_TYPE': str('text/html; charset=utf-8'),
'PATH_INFO': self._get_path(parsed),
'QUERY_STRING': urlencode(data, doseq=True) or force_str(parsed[4]),
'REQUEST_METHOD': str('GET'),
@@ -303,7 +302,6 @@ def head(self, path, data={}, **extra):
parsed = urlparse(path)
r = {
- 'CONTENT_TYPE': str('text/html; charset=utf-8'),
'PATH_INFO': self._get_path(parsed),
'QUERY_STRING': urlencode(data, doseq=True) or force_str(parsed[4]),
'REQUEST_METHOD': str('HEAD'),
Please sign in to comment.
Something went wrong with that request. Please try again.