ソースを参照

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年前
コミット
8ee9b20718
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      qwarc/warc.py

+ 1
- 1
qwarc/warc.py ファイルの表示

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


読み込み中…
キャンセル
保存