From a3d927fa0b25f48197ee3f00b12992e9b0bf9665 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 28 Jul 2019 15:20:39 +0200 Subject: Fix wrong Content-Type header parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In line with HTTP “encoding” parameter should be called “charset”. Fixable errata item created. Fixes issue #19. --- crocoite/test_warc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crocoite/test_warc.py') diff --git a/crocoite/test_warc.py b/crocoite/test_warc.py index 17f3840..3ec310c 100644 --- a/crocoite/test_warc.py +++ b/crocoite/test_warc.py @@ -60,7 +60,7 @@ def test_log (): assert headers['warc-type'] == 'metadata' assert 'warc-target-uri' not in headers assert headers['x-crocoite-type'] == 'log' - assert headers['content-type'] == f'application/json; encoding={handler.logEncoding}' + assert headers['content-type'] == f'application/json; charset={handler.logEncoding}' while True: l = it.raw_stream.readline () -- cgit v1.2.3