summaryrefslogtreecommitdiffstats
path: root/config/application.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-01-12 06:12:58 +0000
committerGo MAEDA <maeda@farend.jp>2020-01-12 06:12:58 +0000
commit6875edabd71fd707e6a367979b2abb26c1964e50 (patch)
tree6f8addcc0740948a536c4969c06511bc288135a4 /config/application.rb
parent4f26ceda9a5cfcb29c9ebb71af6e11265a04a486 (diff)
downloadredmine-6875edabd71fd707e6a367979b2abb26c1964e50.tar.gz
redmine-6875edabd71fd707e6a367979b2abb26c1964e50.zip
X-Sendfile header field is not set if rack 2.1.0 is installed (#32785).
git-svn-id: http://svn.redmine.org/redmine/trunk@19416 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/application.rb')
-rw-r--r--config/application.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb
index a06ee4dba..86b695d42 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -60,7 +60,7 @@ module RedmineApp
config.active_record.sqlite3.represent_boolean_as_integer = true
# Sets the Content-Length header on responses with fixed-length bodies
- config.middleware.insert_after Rack::Sendfile, Rack::ContentLength
+ config.middleware.insert_before Rack::Sendfile, Rack::ContentLength
# Verify validity of user sessions
config.redmine_verify_sessions = true