Ver a proveniência

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 há 4 anos
ascendente
cometimento
8ee9b20718
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      qwarc/warc.py

+ 1
- 1
qwarc/warc.py Ver ficheiro

@@ -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)},


Carregando…
Cancelar
Guardar