Make WordPress Core

Opened 16 years ago

Closed 12 years ago

Last modified 11 years ago

#15110 closed defect (bug) (fixed)

Useless MIME type served for rss feeds

Reported by: singpolyma Owned by: chriscct7
Priority: normal Milestone: 4.3
Component: Feeds Version: 3.0
Severity: normal Keywords: has-patch commit
Cc: Focuses:

Description

Both /feed/, /feed/rss2/, and /feed/rss/ are served using the very undescriptive and generally useless "text/xml" MIME type. ATOM and RDF feeds are served with their proper MIME types. It looks like the MIME types for RSS are in feed.php, but for some reason there is a special "rss-http" type that returns the useless type? Changing the first line in feed-rss.php and feed-rss2.php to use the rss and rss2 type instead of rss-http fixed it on my site.

Attachments (2)

rss-mime.patch​ (908 bytes ) - added by singpolyma 16 years ago.
Patch I've used to fix this
15510.patch​ (1.6 KB ) - added by chriscct7 12 years ago.

Download all attachments as: .zip

Change History (18)

@singpolyma
16 years ago

Patch I've used to fix this

#1 @singpolyma
16 years ago

  • Keywords has-patch added; mime removed

#2 @nkuttler
16 years ago

  • Keywords dev-feedback added

#3 @markjaquith
16 years ago

  • Milestone Awaiting Review → Future Release

#4 @iridox
14 years ago

  • Keywords has-patch, dev-feedback → has-patch dev-feedback

Can we get this added to the queue for 3.5 please?

#6 @SergeyBiryukov
14 years ago

Need to check if the ​wp-testers report and ticket:9810:5 still apply.

#7 @chriscct7
12 years ago

  • Keywords dev-feedback removed

Refreshed patch and added the rss2 header to the comments rss2 feed

#8 @chriscct7
12 years ago

  • Owner set to chriscct7
  • Status new → assigned

#9 @chriscct7
12 years ago

  • Milestone Future Release → 4.3
  • Owner changed from chriscct7 to obenland
  • Status assigned → reviewing

#10 @chriscct7
12 years ago

  • Keywords commit added
  • Owner changed from obenland to chriscct7
  • Status reviewing → accepted

#11 @SergeyBiryukov
12 years ago

The patch essentially reverts [11334] and [11358].

Still need to make sure this does not reintroduce any issues mentioned in #9810 or in the ​wp-testers report.

#12 @chriscct7
12 years ago

This works for the couple of people on a Mac who've helped test it for me at LoopConf.

Apple actually serves their own feeds using application/rss+xml ​http://ax.itunes.apple.com/WebObjects/MZStore.woa/wpa/MRSS/justadded/limit=10/rss.xml

The previously mentioned download behavior in FireFox was actually a bug they fixed: ​https://bugzilla.mozilla.org/show_bug.cgi?id=256379

#13 @wonderboymusic
12 years ago

Firefox works fine with both.
Chrome parses the old feeds with an XML parser, parses them as plain text with patch
Safari doesn't parse in either version but suggests downloading a feed reader

#14 @wonderboymusic
12 years ago

  • Resolution → fixed
  • Status accepted → closed

In 32468:

Serve RSS feeds with the proper mime-type: application/rss+xml. The reason for hacking around browsers by using text/xml appears to no longer be relevant.

Props @chriscct7.
Reverts [11334] and [11358]
Fixes #15110.

#15 @johnbillion
11 years ago

In 36230:

Feeds: Remove the rss-http feed type, unused since r32468.

See #15110

Note: See TracTickets for help on using tickets.