diff options
author | Claude Paroz <claude@2xlibre.net> | 2022-03-08 17:03:04 +0100 |
---|---|---|
committer | Carlton Gibson <carlton@noumenal.es> | 2022-03-09 14:50:52 +0100 |
commit | 93803a1b5f4a08eb064b4cc8b3834ff323be4065 (patch) | |
tree | 66144520fc2d82e8ce105022ae77341f6aaa83d0 /tests/httpwrappers | |
parent | 3dbf46654c4017bf1336b32e76f0efa32fad07ca (diff) | |
download | django-93803a1b5f4a08eb064b4cc8b3834ff323be4065.tar.gz |
Fixed #33567 -- Avoided setting default text/html content type on responses.
Diffstat (limited to 'tests/httpwrappers')
-rw-r--r-- | tests/httpwrappers/tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py index 7ee20f9ce9..6ab0cc52cb 100644 --- a/tests/httpwrappers/tests.py +++ b/tests/httpwrappers/tests.py @@ -539,7 +539,6 @@ class HttpResponseSubclassesTests(SimpleTestCase): response = HttpResponseRedirect( "/redirected/", content="The resource has temporarily moved", - content_type="text/html", ) self.assertContains( response, "The resource has temporarily moved", status_code=302 @@ -592,7 +591,7 @@ class HttpResponseSubclassesTests(SimpleTestCase): self.assertEqual(response.status_code, 405) # Standard HttpResponse init args can be used response = HttpResponseNotAllowed( - ["GET"], content="Only the GET method is allowed", content_type="text/html" + ["GET"], content="Only the GET method is allowed" ) self.assertContains(response, "Only the GET method is allowed", status_code=405) |