Browse Source

Remove WARC-Target-URI header from warcinfo record

WARC 1.1 specification, section 5.14: "A ‘warcinfo’ record shall not have a WARC-Target-URI field."
tags/v0.2.0^0
JustAnotherArchivist 4 years ago
parent
commit
8ee9b20718
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      qwarc/warc.py

+ 1
- 1
qwarc/warc.py View File

@@ -92,7 +92,7 @@ class WARC:
digester = warcio.utils.Digester('sha1')
digester.update(payload.getvalue())
record = self._warcWriter.create_warc_record(
'urn:X-qwarc:warcinfo',
None,
'warcinfo',
payload = payload,
warc_headers_dict = {'Content-Type': 'application/json; charset=utf-8', 'WARC-Block-Digest': str(digester)},


Loading…
Cancel
Save