This project is archived and is in readonly mode.
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
-
Anton Astashov March 3rd, 2011 @ 04:59 AM
Agreed, e.g. Bing Bot uses Accept: text/*, and every its request raises ActionView::MissingTemplate exception in our app.
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>
People watching this ticket
Referenced by
- 5113 MissingTemplate issues in Rails 3.0 due to badly set MIME types... For "text/*" Rails does not have any support, i.e. it doe...