diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2019-07-28 15:20:39 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2019-07-28 15:22:50 +0200 |
commit | a3d927fa0b25f48197ee3f00b12992e9b0bf9665 (patch) | |
tree | 9edba69f683a54b625471b99ef2b9b329d2667be /crocoite/test_warc.py | |
parent | 784d19214c569be63efddd36a6d1d5ff440edcd2 (diff) | |
download | crocoite-a3d927fa0b25f48197ee3f00b12992e9b0bf9665.tar.gz crocoite-a3d927fa0b25f48197ee3f00b12992e9b0bf9665.tar.bz2 crocoite-a3d927fa0b25f48197ee3f00b12992e9b0bf9665.zip |
Fix wrong Content-Type header parameter
In line with HTTP “encoding” parameter should be called “charset”.
Fixable errata item created.
Fixes issue #19.
Diffstat (limited to 'crocoite/test_warc.py')
-rw-r--r-- | crocoite/test_warc.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 () |