summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Aylett <james@tartarus.org>2018-09-01 14:14:18 +0100
committerClaude Paroz <claude@2xlibre.net>2018-09-01 15:16:07 +0200
commit231c595bde342e507091167387fba7ba1882b9c9 (patch)
treefcd5fc78c3b21ab4e256d0f8228cd0f83f99cefb
parentd51ca1232e25ffe39755320e99508d69e567d833 (diff)
downloaddjango-231c595bde342e507091167387fba7ba1882b9c9.tar.gz
[2.1.x] Refs #16470 -- Fixed typo in a FileResponse test.
Backport of ee52044a278885bd9455dd59b1e16c5d5e2d68ce from master.
-rw-r--r--tests/responses/test_fileresponse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/responses/test_fileresponse.py b/tests/responses/test_fileresponse.py
index d6e6535b92..5896373d4d 100644
--- a/tests/responses/test_fileresponse.py
+++ b/tests/responses/test_fileresponse.py
@@ -34,7 +34,7 @@ class FileResponseTests(SimpleTestCase):
response = FileResponse(os.fdopen(pipe_for_read, mode='rb'))
self.assertEqual(list(response), [b'binary content'])
response.close()
- self.assertFalse(response.has_header('Ĉontent-Length'))
+ self.assertFalse(response.has_header('Content-Length'))
def test_file_from_disk_as_attachment(self):
response = FileResponse(open(__file__, 'rb'), as_attachment=True)