warcat
warcat copied to clipboard
No mention of 'resource' in list at verify_refers_to
According to the WARC 1.0 and 1.1 specifications "[t]he WARC-Refers-To field shall not be used in ‘warcinfo’, ‘response’, ‘resource’, ‘request’, and ‘continuation’ records". In warcat's source code, verify_refers_to does not mention 'resource'. Is this a bug or a feature? https://github.com/chfoo/warcat/blob/fb63a37f37a84d679a65e085bf3a451b88323623/warcat/tool.py#L359
Good catch, it's not supposed to be missing that one.
(As a FYI, this project was written based on the draft WARC 1.0 spec. I haven't updated the project since then, but in this case, I must have missed it by accident.)
Is it enough to simply add in the missing 'resource'?