Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

This project is archived and is in readonly mode.

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

#6458

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 MissingTemplate issues in Rails 3.0 due to badly set MIME types..., 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.

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

State: new
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Anton Astashov
    Anton Astashov

    Agreed, e.g. Bing Bot uses Accept: text/*, and every its request raises ActionView::MissingTemplate exception in our app.

    March 3rd, 2011 @ 04:59 AM

  2. Diego Carrion
    Diego Carrion

    This seems to be fixed on edge.

    March 5th, 2011 @ 11:10 PM