【问题标题】:Rack::Deflater works if only added to config.ruRack::Deflater 如果只添加到 config.ru 就可以工作
【发布时间】:2017-01-22 23:51:36
【问题描述】:

为什么我在添加时得到Error: incorrect header check

class Application < Rails::Application
   config.middleware.use Rack::Deflater
...

...但不是当我将use Rack::Deflater 添加到config.ru 时?我仔细检查了:gzip 可以工作并压缩响应。


  • Rails 3.2.15
  • jRuby 1.7.13

【问题讨论】:

  • 有关所用服务器的任何详细信息?

标签: ruby-on-rails-3 gzip jruby rack


【解决方案1】:

这是 jRuby 1.7 的一个错误

https://github.com/rack/rack/issues/571

它在 1.7.23 中已修复,所以我只需要升级。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-12-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-02-22
    • 1970-01-01
    • 2012-05-08
    • 2014-06-15
    相关资源
    最近更新 更多