Explorar el Código

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 hace 4 años
padre
commit
8ee9b20718
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      qwarc/warc.py

+ 1
- 1
qwarc/warc.py Ver fichero

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


Cargando…
Cancelar
Guardar