chfoo/warcat

No mention of 'resource' in list at verify_refers_to

RvanVeenendaal opened this issue · 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?

if record.warc_type in ('warcinfo', 'response', 'request',

chfoo commented

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'?