From: Jean-Philippe Lang Date: Wed, 30 Sep 2015 20:40:51 +0000 (+0000) Subject: Adds Rack::ContentLength (#17403). X-Git-Tag: 3.2.0~215 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f0323575f99bb2db7b4586499a46b0fc44719750;p=redmine.git Adds Rack::ContentLength (#17403). git-svn-id: http://svn.redmine.org/redmine/trunk@14632 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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