A "self" link with any parameters added fails to validate. So "application/atom+xml; charset=utf-8" is classed as invalid (well a warning).
The tests pass elsewhere as your regex matches fine, it's only the self link that fails. I don't know any python but I think that line should be a check to see if the type starts with the set mime types, not equals.
The RFC does state that "MIME implementations must ignore any parameters whose names they do not recognize."
A "self" link with any parameters added fails to validate. So "application/atom+xml; charset=utf-8" is classed as invalid (well a warning).
The tests pass elsewhere as your regex matches fine, it's only the self link that fails. I don't know any python but I think that line should be a check to see if the type starts with the set mime types, not equals.
The RFC does state that "MIME implementations must ignore any parameters whose names they do not recognize."