warcat icon indicating copy to clipboard operation
warcat copied to clipboard

No mention of 'resource' in list at verify_refers_to

Open RvanVeenendaal opened this issue 4 years ago • 2 comments

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

RvanVeenendaal avatar Mar 09 '20 14:03 RvanVeenendaal

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.)

chfoo avatar Mar 10 '20 04:03 chfoo

Is it enough to simply add in the missing 'resource'?

billsargent avatar Jan 26 '22 14:01 billsargent