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 [77a2a3d9b3aa461437ced326ea4a70112a8c68ed] by wycats

Revision 77a2a3d9b3aa461437ced326ea4a70112a8c68ed, committed by wycats · March 28th, 2010 @ 09:40 PM

Request#content_type exists in Rack::Request, and other parts of Rack::Request expect
it to return a String. Split the Rails API so that Request#content_type returns
a String, and Request#content_mime_type returns a Mime::Type object.
http://github.com/rails/rails/commit/77a2a3d9b3aa461437ced326ea4a70...

5 changed files

  • M actionpack/lib/action_dispatch/http/mime_negotiation.rb
  • M actionpack/lib/action_dispatch/http/request.rb
  • M actionpack/lib/action_dispatch/middleware/params_parser.rb
  • M actionpack/test/dispatch/rack_test.rb
  • M actionpack/test/dispatch/request_test.rb