mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #31789 -- Added a new headers interface to HttpResponse.
This commit is contained in:
committed by
Mariusz Felisiak
parent
71ae1ab012
commit
bcc2befd0e
@@ -1210,7 +1210,7 @@ class RequestMethodStringDataTests(SimpleTestCase):
|
||||
)
|
||||
for content_type in valid_types:
|
||||
response = self.client.get('/json_response/', {'content_type': content_type})
|
||||
self.assertEqual(response['Content-Type'], content_type)
|
||||
self.assertEqual(response.headers['Content-Type'], content_type)
|
||||
self.assertEqual(response.json(), {'key': 'value'})
|
||||
|
||||
def test_json_multiple_access(self):
|
||||
|
||||
Reference in New Issue
Block a user