summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Tamlyn <marc.tamlyn@gmail.com>2013-06-14 01:49:33 -0700
committerMarc Tamlyn <marc.tamlyn@gmail.com>2013-06-14 01:49:33 -0700
commit0f3f88ec945b2f6728b9ed04e27c5fa4bcc43898 (patch)
tree9047862be122dfeda702b3e10bf905db185c34d7
parent91f317c76d503b4bcae5a26c230425944dbf4ea8 (diff)
parent1b19f9e9e7db5f45c44e840ca709b1566a989efa (diff)
Merge pull request #1270 from tomchristie/remove-incorrect-content-type-test-client
Remove incorrect CONTENT_TYPE header from GET and HEAD requests
-rw-r--r--django/test/client.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/django/test/client.py b/django/test/client.py
index 2ed0df8fea..94cfada725 100644
--- a/django/test/client.py
+++ b/django/test/client.py
@@ -272,7 +272,6 @@ class RequestFactory(object):
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 @@ class RequestFactory(object):
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'),