Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support extra stuff in the Content-Type header via Mime registration
I'm not sure a better way to describe this, but we need to set extra stuff in the Content-Type header and we're doing it via Mime registration so that we can have the "html_fragment" method on the respond_to type. This worked in Rails 5.2, but it's broken in 6.0 In the future, I think we should probably give `register` a block that takes the response object so we can do more interesting and complex stuff without doing weird string manipulation. But this patch fixes the issue we have today.
- Loading branch information
1 parent
04cfbc8
commit 10b1816
Showing
2 changed files
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters