From 6875edabd71fd707e6a367979b2abb26c1964e50 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 12 Jan 2020 06:12:58 +0000 Subject: [PATCH] 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 --- config/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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