diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-09-30 20:40:51 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-09-30 20:40:51 +0000 |
commit | f0323575f99bb2db7b4586499a46b0fc44719750 (patch) | |
tree | 4e573280a8793aab94e711ca92fae085da7da16b /config/application.rb | |
parent | 3a69245625b399eef11774ddad4cf6abba6bcda7 (diff) | |
download | redmine-f0323575f99bb2db7b4586499a46b0fc44719750.tar.gz redmine-f0323575f99bb2db7b4586499a46b0fc44719750.zip |
Adds Rack::ContentLength (#17403).
git-svn-id: http://svn.redmine.org/redmine/trunk@14632 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/application.rb')
-rw-r--r-- | config/application.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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 |