rails--rails/actionpack/lib/action_dispatch
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
..
http Make AD::Response correctly handle bodies that respond_to?(:to_path) as per the Rack spec 2010-02-23 16:29:29 -08:00
middleware Revert behavior from a5684dfa3c and ensure after_initializer is executed after to_prepare callbacks. 2010-02-19 08:15:49 +01:00
routing Use ActionDispatch::Routing everywhere 2010-02-21 13:43:51 -08:00
testing Use ActionDispatch::Routing everywhere 2010-02-21 13:43:51 -08:00
railtie.rb Makes send_file work again by deferring to Rack::Sendfile. 2010-02-23 17:06:35 -08:00
routing.rb Use ActionDispatch::Routing everywhere 2010-02-21 13:43:51 -08:00