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 [dc5300adb6d46252c26e239ac67e3ca6e5e2d77b] by Paul Sadauskas

Revision dc5300adb6d46252c26e239ac67e3ca6e5e2d77b, committed by Paul Sadauskas · April 2nd, 2010 @ 01:42 AM

Slightly less annoying check for acceptable mime_types. This allows Accept: application/json, application/jsonp (and the like), but still blacklists browsers. Essentially, we use normal content negotiation unless you include / in your list, in which case we assume you're a browser and send HTML [#3541 state:resolved]
http://github.com/rails/rails/commit/dc5300adb6d46252c26e239ac67e3c...

1 changed file

  • M actionpack/lib/action_dispatch/http/mime_negotiation.rb