0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Remove incorrect CONTENT_TYPE header from GET and HEAD requests

This commit is contained in:
Tom Christie 2013-06-14 09:17:33 +01:00
parent adeec00979
commit 1b19f9e9e7

View File

@ -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'),