mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #5897 -- Added the Content-Length response header in CommonMiddleware
Thanks Tim Graham for the review.
This commit is contained in:
@@ -41,6 +41,7 @@ class TestStartProjectSettings(TestCase):
|
||||
response = self.client.get('/empty/')
|
||||
headers = sorted(response.serialize_headers().split(b'\r\n'))
|
||||
self.assertEqual(headers, [
|
||||
b'Content-Length: 0',
|
||||
b'Content-Type: text/html; charset=utf-8',
|
||||
b'X-Frame-Options: SAMEORIGIN',
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user