This project is archived and is in readonly mode.

#6458 new
Roel van der Hoorn

Rails does not recognize the "text/*" MIME type

Reported by Roel van der Hoorn | February 21st, 2011 @ 10:36 AM

Some web crawlers use the "text/*" MIME type in the HTTP ACCEPT header in their request. This makes Rails throw a MissingTemplate error.

This ticket covers only the part that "text/*" should return any text type (e.g. text/html, text/plain). And "image/*" any image type for that matter.

Note that this issue is not the same as #5113, which covers the MissingTemplate part, instead of returning a 406 (Not Acceptable), if the HTTP ACCEPT header requests only MIME types for which the respond_to block does not have an adequate response.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages