Rack::Chunked 已被弃用,将在 Rack 3.1 中移除。

huangapple go评论65阅读模式
英文:

Rack::Chunked is deprecated and will be removed in Rack 3.1

问题

当我启动我的Rails应用程序时,我收到以下警告:

> /Users/dorianmariefr/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rack-3.0.7/lib/rack/chunked.rb:6: warning: Rack::Chunked已被弃用,将在Rack 3.1中移除

不确定如何修复此警告,有任何想法吗?

英文:

When I start my rails app I get:

> /Users/dorianmariefr/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rack-3.0.7/lib/rack/chunked.rb:6: warning: Rack::Chunked is deprecated and will be removed in Rack 3.1

Not sure how to fix this warning, any idea?

答案1

得分: 5

如果你需要在你的应用程序中直接要求 Rack::Chuncked,你可以要求 RackRack::Chuncked 在一些文件中自动加载,比如 actionpack/lib/action_controller/metal/streaming.rbRack::Chunked 将在 Rack 3.1 与 Rails 8 中被完全移除。你可以查看 此链接 获取更多详细信息。

英文:

If you need to require Rack::Chuncked directly in your app, you can require Rack. Rack::Chuncked is autoloaded in some files like actionpack/lib/action_controller/metal/streaming.rb. Rack::Chunked will be completely removed in Rack 3.1 with Rails 8. You can check this link for more details.

huangapple
  • 本文由 发表于 2023年5月30日 01:52:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/76359405.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定