Commit 0f3f88ec authored by Marc Tamlyn's avatar Marc Tamlyn
Browse files

Merge pull request #1270 from tomchristie/remove-incorrect-content-type-test-client

Remove incorrect CONTENT_TYPE header from GET and HEAD requests
parents 91f317c7 1b19f9e9
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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'),