1
0
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:
Claude Paroz
2016-06-18 10:51:38 +02:00
parent ca77b50905
commit 9588718cd4
6 changed files with 44 additions and 5 deletions

View File

@@ -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',
])