Kaydet (Commit) 1b19f9e9 authored tarafından Tom Christie's avatar Tom Christie

Remove incorrect CONTENT_TYPE header from GET and HEAD requests

üst adeec009
......@@ -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'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment