Skip to content

Commit

Permalink
Fix deprecation message s/Rails 7.0 will return/Rails 7.1 will return/
Browse files Browse the repository at this point in the history
`return_only_media_type_on_content_type` will be introduced in Rails 7.0
so the changing of returning Content-Type will happen in a future
version of Rails.

Follow up to #41251.
  • Loading branch information
kamipo committed Feb 5, 2021
1 parent bf1fbfd commit 7c1f1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_dispatch/http/mime_negotiation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def content_mime_type
def content_type
if self.class.return_only_media_type_on_content_type
ActiveSupport::Deprecation.warn(
"Rails 7.0 will return Content-Type header without modification." \
"Rails 7.1 will return Content-Type header without modification." \
" If you want just the MIME type, please use `#media_type` instead."
)

Expand Down

0 comments on commit 7c1f1ad

Please sign in to comment.