This website works better with JavaScript.
Home
Explore
Help
Sign In
JustAnotherArchivist
/
qwarc
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
13
Wiki
Activity
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
f14a664b1c
commit
8ee9b20718
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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)},
Write
Preview
Loading…
Cancel
Save