Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#9087 closed (wontfix)

Change RssFeed mime-type to "application/xml"

Reported by: Arthur Koziel Owned by: nobody
Component: contrib.syndication Version: 1.0
Severity: Keywords: mime-type rss+xml
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Currently the RssFeed class returns RSS feeds with "application/rss+xml" as the mime-type. However, "application/rss+xml" isn't a valid registered mime-type at the IANA (http://www.iana.org/assignments/media-types/application/), so I'm proposing to change it to "application/xml" which seems to be widely used among other rss feeds.

Nice side effect: Firefox will highlight the XML properly when viewing its source, which makes debugging a little bit easier.

Attachments (1)

feed_mimetype.diff (499 bytes ) - added by Arthur Koziel 16 years ago.

Download all attachments as: .zip

Change History (4)

by Arthur Koziel, 16 years ago

Attachment: feed_mimetype.diff added

comment:1 by Arthur Koziel, 16 years ago

Has patch: set
milestone: post-1.0

comment:2 by Malcolm Tredinnick, 16 years ago

Resolution: wontfix
Status: newclosed

The current MIME type (rss+xml) is also commonly used for RSS feeds (RSS is a notoriously poorly specified "standard", so there are multiple content types used in practice). Yes, it didn't complete the IANA registration process for some reason, but it does conform to the RFC 3023 pattern. It's also useful not to use the overly-general application/xml type so that browsers like Firefox, etc, can correctly dispatch to an external application, rather than falling back to internal processing for an RSS feed.

End of the day, the Feed Validator is happy with our chosen MIME type. It works well with browsers, in that they can detect a feed and dispatch to a feed reader instead of falling back to displaying the source (which is usually the wrong thing to do). It's also consistent with what a lot of other sites do. It's a little pointless to talk about Internet standards when it comes to RSS, since it generally plays poorly with them. We do as well as we can with an imperfect spec here. If you want good, accurate standards support, use Atom. It wouldn't be particularly productive to change the MIME type here in Django.

comment:3 by (none), 16 years ago

milestone: post-1.0

Milestone post-1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top