From 1b19f9e9e7db5f45c44e840ca709b1566a989efa Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 14 Jun 2013 09:17:33 +0100 Subject: [PATCH] Remove incorrect CONTENT_TYPE header from GET and HEAD requests --- django/test/client.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/django/test/client.py b/django/test/client.py index 46f55d7cdc..46ce653627 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'),