-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Description
Routes
NOROUTE
Full routes
NOROUTE
Related documentation
https://docs.rsshub.app/guide/parameters#output-formats
What is expected?
Routes with ?format=atom parameter should output <content type="text/html" src="https://example.com/~">
What is actually happening?
Routes with ?format=atom parameter is outputting <content type="html" src="https://example.com/~">
Deployment information
RSSHub demo (https://rsshub.app)
Deployment information (for self-hosted)
No response
Additional info
This is not about route, but rather the ?format=atom parameter. According to Atom's standard RFC 4287 4.1.3.2. section:
4.1.3.2. The "src" Attribute
atom:content MAY have a "src" attribute, whose value MUST be an IRI
reference [RFC3987]. If the "src" attribute is present, atom:content
MUST be empty. Atom Processors MAY use the IRI to retrieve the
content and MAY choose to ignore remote content or to present it in a
different manner than local content.If the "src" attribute is present, the "type" attribute SHOULD be
provided and MUST be a MIME media type [MIMEREG], rather than "text",
"html", or "xhtml". The value is advisory; that is to say, when the
corresponding URI (mapped from an IRI, if necessary) is dereferenced,
if the server providing that content also provides a media type, the
server-provided media type is authoritative.
Currently, RSSHub's Atom outputs do not conform to the standard, causing downstream parsers (such as Rust's feed-rs) to reject them.
This is not a duplicated issue
- I have searched existing issues to ensure this bug has not already been reported