rails--rails/actionpack/lib/action_controller
Carlhuda 5e2bd08023 Makes send_file work again by deferring to Rack::Sendfile.
* Add the Rack::Sendfile middleware
  * Make the header to use configurable via config.action_dispatch.x_sendfile_header (default to "X-Sendfile"). 
  * Add Railties tests to confirm that these work
  * Remove the :stream, :buffer_size, and :x_senfile default options to send_file
  * Change the log subscriber to always say "Sent file"
  * Add deprecation warnings for options that are now no-ops

Note that servers can configure this by setting X-Sendfile-Type. Hosting companies and those creating packages of servers specially designed for Rails applications are encouraged to specify this header so that this can work transparently.
2010-02-23 17:06:35 -08:00
..
caching
deprecated
metal Makes send_file work again by deferring to Rack::Sendfile. 2010-02-23 17:06:35 -08:00
railties Makes send_file work again by deferring to Rack::Sendfile. 2010-02-23 17:06:35 -08:00
vendor
base.rb Update AP to start locking down a public API. This work is parallel to some docs I'm working on. 2010-02-16 10:45:59 -08:00
caching.rb
deprecated.rb Use ActionDispatch::Routing everywhere 2010-02-21 13:43:51 -08:00
metal.rb Update AP to start locking down a public API. This work is parallel to some docs I'm working on. 2010-02-16 10:45:59 -08:00
middleware.rb
polymorphic_routes.rb Require persisted? in ActiveModel::Lint and remove new_record? and destroyed? methods. ActionPack does not care if the resource is new or if it was destroyed, it cares only if it's persisted somewhere or not. 2010-02-21 11:12:14 +01:00
railtie.rb Rename Rails::Subscriber to Rails::LogSubscriber 2010-02-16 22:36:15 +01:00
record_identifier.rb AMo #key is now #to_key and CI is probably happy 2010-02-20 20:17:29 -08:00
test_case.rb Use ActionDispatch::Routing everywhere 2010-02-21 13:43:51 -08:00
url_rewriter.rb