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
@@ -159,7 +159,7 @@ class ClientTest(TestCase):
|
||||
"Check the value of HTTP headers returned in a response"
|
||||
response = self.client.get("/header_view/")
|
||||
|
||||
self.assertEqual(response['X-DJANGO-TEST'], 'Slartibartfast')
|
||||
self.assertEqual(response.headers['X-DJANGO-TEST'], 'Slartibartfast')
|
||||
|
||||
def test_response_attached_request(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user