Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #1270 from tomchristie/remove-incorrect-content-ty…

…pe-test-client

Remove incorrect CONTENT_TYPE header from GET and HEAD requests
  • Loading branch information...
commit 0f3f88ec945b2f6728b9ed04e27c5fa4bcc43898 2 parents 91f317c + 1b19f9e
Marc Tamlyn authored

Showing 1 changed file with 0 additions and 2 deletions. Show diff stats Hide diff stats

  1. 2  django/test/client.py
2  django/test/client.py
@@ -272,7 +272,6 @@ def get(self, path, data={}, **extra):
272 272
 
273 273
         parsed = urlparse(path)
274 274
         r = {
275  
-            'CONTENT_TYPE':    str('text/html; charset=utf-8'),
276 275
             'PATH_INFO':       self._get_path(parsed),
277 276
             'QUERY_STRING':    urlencode(data, doseq=True) or force_str(parsed[4]),
278 277
             'REQUEST_METHOD':  str('GET'),
@@ -303,7 +302,6 @@ def head(self, path, data={}, **extra):
303 302
 
304 303
         parsed = urlparse(path)
305 304
         r = {
306  
-            'CONTENT_TYPE':    str('text/html; charset=utf-8'),
307 305
             'PATH_INFO':       self._get_path(parsed),
308 306
             'QUERY_STRING':    urlencode(data, doseq=True) or force_str(parsed[4]),
309 307
             'REQUEST_METHOD':  str('HEAD'),

0 notes on commit 0f3f88e

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