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_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crocoite/test_tools.py') diff --git a/crocoite/test_tools.py b/crocoite/test_tools.py index e8edb98..416b954 100644 --- a/crocoite/test_tools.py +++ b/crocoite/test_tools.py @@ -52,7 +52,7 @@ def makeGolden(writer, records): '', 'warcinfo', payload=b'', - warc_headers_dict={'Content-Type': 'text/plain; encoding=utf-8'}) + warc_headers_dict={'Content-Type': 'application/json; charset=utf-8'}) records.insert (0, record) return records -- cgit v1.2.3