From f0323575f99bb2db7b4586499a46b0fc44719750 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 30 Sep 2015 20:40:51 +0000 Subject: [PATCH] Adds Rack::ContentLength (#17403). git-svn-id: http://svn.redmine.org/redmine/trunk@14632 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/application.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/application.rb b/config/application.rb index 90b1adf9a..e4e0097d4 100644 --- a/config/application.rb +++ b/config/application.rb @@ -54,6 +54,9 @@ module RedmineApp # and extracted to actionpack-xml_parser gem config.middleware.insert_after ActionDispatch::ParamsParser, ActionDispatch::XmlParamsParser + # Sets the Content-Length header on responses with fixed-length bodies + config.middleware.use Rack::ContentLength + # Specific cache for search results, the default file store cache is not # a good option as it could grow fast. A memory store (32MB max) is used # as the default. If you're running multiple server processes, it's -- 2.39.5