diff options
author | Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de> | 2018-01-18 07:30:51 +0100 |
---|---|---|
committer | Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de> | 2018-01-18 07:44:34 +0100 |
commit | 60d878d0a0bfd7ba89aae8fc7cf4dac6400fb58e (patch) | |
tree | 0b3b890fd84d88c3f0e509c66837526d76ad7992 /config | |
parent | c1ee8a1f275918ea173d176ac4fa9378bfa2b0c1 (diff) | |
download | ecs-60d878d0a0bfd7ba89aae8fc7cf4dac6400fb58e.tar.gz ecs-60d878d0a0bfd7ba89aae8fc7cf4dac6400fb58e.zip |
Content-Length header via Rails middleware.
The Content-Length rack module provided through ruby 2.1 doesn't work
correctly with Rails 4.1. So we provide our own.
Diffstat (limited to 'config')
-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 3f5e7e0..a41c7f7 100644 --- a/config/application.rb +++ b/config/application.rb @@ -1,11 +1,13 @@ require File.expand_path('../boot', __FILE__) require 'rails/all' +#require 'rack_content_length' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) + module Ecs4 class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. @@ -19,5 +21,6 @@ module Ecs4 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.default_locale = :de + config.middleware.use "ContentLength" end end |