Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect WARC-Profile for revisit records when using WARC/1.1 #94

Closed
JustAnotherArchivist opened this issue Sep 8, 2019 · 0 comments
Closed

Comments

@JustAnotherArchivist
Copy link
Contributor

JustAnotherArchivist commented Sep 8, 2019

warcio writes a WARC-Profile header value of http://netpreserve.org/warc/1.0/revisit/identical-payload-digest on revisit records regardless of the WARC version used. For 1.1, it should be http://netpreserve.org/warc/1.1/revisit/identical-payload-digest instead (section 6.7.2 in the WARC/1.1 specification).

Unfortunately, it isn't even possible to override this through warc_headers_dict because you then end up with two headers. This works instead after creating the record:

record.rec_headers.replace_header('WARC-Profile', 'http://netpreserve.org/warc/1.1/revisit/identical-payload-digest')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant