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.

This project is archived and is in readonly mode.

Changeset [61950a4b05ce1b5640ac3f3720f9a3368ce95a29] by Neeraj Singh

Revision 61950a4b05ce1b5640ac3f3720f9a3368ce95a29, committed by Neeraj Singh · November 22nd, 2010 @ 10:06 PM

current code ignores http header "Accept" if it
has ....,/ .

It is possible to a device to send
request such that / appear at the beginning of the
"Accept" header. This patch ensures that "Accept" header is ignored for such cases too.

Signed-off-by: José Valim jose.valim@gmail.com
https://github.com/rails/rails/commit/61950a4b05ce1b5640ac3f3720f9a...

2 changed files

  • M actionpack/lib/action_dispatch/http/mime_negotiation.rb
  • M actionpack/test/controller/mime_responds_test.rb