Skip to content

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

@lighthouse-import

Description

@lighthouse-import

Imported from Lighthouse. Original ticket at: http://rails.lighthouseapp.com/projects/8994/tickets/6458
Created by Roel van der Hoorn - 2011-02-21 10:36:42 UTC

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions