mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
5e2bd08023344f3fd4675e80203a10967ffe9000
* 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.
Fix streaming by having it create a File object, which can be handled by Rack servers as appropriate
Description
No description provided
Languages
Ruby
97.9%
CSS
1.5%
HTML
0.5%