diff options
author | wycats <wycats@gmail.com> | 2010-03-26 16:58:55 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-03-26 16:58:55 -0700 |
commit | 56a86c2191e159448bd2644f105f629c34c85c48 (patch) | |
tree | b7cef99faf30be7f289fdb8f786af54be67cfe74 /actionpack/lib | |
parent | 197904341f2b2f21d69c653cede3aec124e86720 (diff) | |
download | rails-56a86c2191e159448bd2644f105f629c34c85c48.tar.gz rails-56a86c2191e159448bd2644f105f629c34c85c48.tar.bz2 rails-56a86c2191e159448bd2644f105f629c34c85c48.zip |
Make X-Sendfile default to "" so it works correctly in dev mode.
Provide a default in production.rb that can be modified, so that
people who care about sendfile performance in production mode can
get better performance easily.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/railtie.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/railtie.rb b/actionpack/lib/action_dispatch/railtie.rb index 430c90e515..563df0f256 100644 --- a/actionpack/lib/action_dispatch/railtie.rb +++ b/actionpack/lib/action_dispatch/railtie.rb @@ -4,7 +4,7 @@ require "rails" module ActionDispatch class Railtie < Rails::Railtie config.action_dispatch = ActiveSupport::OrderedOptions.new - config.action_dispatch.x_sendfile_header = "X-Sendfile" + config.action_dispatch.x_sendfile_header = "" config.action_dispatch.ip_spoofing_check = true # Prepare dispatcher callbacks and run 'prepare' callbacks |