Skip to content

Commit

Permalink
Update lib/cable_ready/engine.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Kasper Timm Hansen <hey@kaspth.com>
  • Loading branch information
tcannonfodder and kaspth authored Oct 11, 2024
1 parent 05c269f commit e6c11f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cable_ready/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Engine < Rails::Engine
# Support `as: :cable_ready`. Public `register_encoder` API is a little too strict.
class ActionDispatch::RequestEncoder
class CableReadyStreamEncoder < IdentityEncoder
header = [ Mime[:cable_ready], Mime[:html] ].join(",")
header = [ Mime[:cable_ready], Mime[:json] ].join(",")
define_method(:accept_header) { header }
end

Expand Down

0 comments on commit e6c11f3

Please sign in to comment.