diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-12-31 12:45:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-12-31 12:45:36 +0000 |
commit | aef4a8a65bd690389dda2d2832e5a0c645b6d053 (patch) | |
tree | efe62a1f5264b6831f63a0e5b0915f7c242207fb /config/application.rb | |
parent | d521e49dbd3c48773c5e29abba6d325fbb5142c6 (diff) | |
download | redmine-aef4a8a65bd690389dda2d2832e5a0c645b6d053.tar.gz redmine-aef4a8a65bd690389dda2d2832e5a0c645b6d053.zip |
Fixed that X-Sendfile header is never set (#24646).
git-svn-id: http://svn.redmine.org/redmine/trunk@16114 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/application.rb')
-rw-r--r-- | config/application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb index 96fa38b49..965edcec2 100644 --- a/config/application.rb +++ b/config/application.rb @@ -55,7 +55,7 @@ module RedmineApp config.middleware.insert_after ActionDispatch::ParamsParser, ActionDispatch::XmlParamsParser # Sets the Content-Length header on responses with fixed-length bodies - config.middleware.use Rack::ContentLength + config.middleware.insert_after Rack::Sendfile, Rack::ContentLength # Verify validity of user sessions config.redmine_verify_sessions = true |