Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1270 from tomchristie/remove-incorrect-content-ty…

…pe-test-client

Remove incorrect CONTENT_TYPE header from GET and HEAD requests
  • Loading branch information...
commit 0f3f88ec945b2f6728b9ed04e27c5fa4bcc43898 2 parents 91f317c + 1b19f9e
Marc Tamlyn mjtamlyn 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.