Skip to content
Browse files

Remove incorrect CONTENT_TYPE header from GET and HEAD requests

  • Loading branch information...
1 parent adeec00 commit 1b19f9e9e7db5f45c44e840ca709b1566a989efa @tomchristie tomchristie committed
Showing with 0 additions and 2 deletions.
  1. +0 −2 django/test/client.py
View
2 django/test/client.py
@@ -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'),

0 comments on commit 1b19f9e

Please sign in to comment.
Something went wrong with that request. Please try again.