This project is archived and is in readonly mode.

#6022 ✓resolved
Fjan

Content negotiation fails for some */* headers (regression)

Reported by Fjan | November 20th, 2010 @ 08:37 PM

On Rails 3.0.3 clients that have an accept header with */* in it will not get a response iff there is an unrecognized mime type in the header and there is no html/text mime type. For example (headers taken from actual production log)

These clients see a "template missing":

  • HTTP_ACCEPT: text/*
  • HTTP_ACCEPT: */*, auth/sicily
  • HTTP_ACCEPT: */*, application/youtube-client

These clients get the proper response:

  • HTTP_ACCEPT: */*
  • HTTP_ACCEPT: */*, text/html, application/youtube-client

These odd headers are pretty rare (Windows CE phone, down jones spider, etc), about 3 per day on a high traffic site, but according to specs they should still receive an HTML response as this ticket discusses.

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