Content-Length header via Rails middleware.
commit60d878d0a0bfd7ba89aae8fc7cf4dac6400fb58e
authorHeiko Bernloehr <Heiko.Bernloehr@FreeIT.de>
Thu, 18 Jan 2018 06:30:51 +0000 (18 07:30 +0100)
committerHeiko Bernloehr <Heiko.Bernloehr@FreeIT.de>
Thu, 18 Jan 2018 06:44:34 +0000 (18 07:44 +0100)
tree0b3b890fd84d88c3f0e509c66837526d76ad7992
parentc1ee8a1f275918ea173d176ac4fa9378bfa2b0c1
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.
app/middleware/content_length.rb [new file with mode: 0644]
config/application.rb