Skip to content

Commit 388f602

Browse files
committed
Fix deprecation message s/Rails 6.1 will return/Rails 7.0 will return/
`return_only_media_type_on_content_type` will be introduced in Rails 6.2 so the changing of returning Content-Type will happen in a future version of Rails (probably 7.0).
1 parent c38db72 commit 388f602

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

actionpack/lib/action_dispatch/http/mime_negotiation.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ def content_mime_type
3636
def content_type
3737
if self.class.return_only_media_type_on_content_type
3838
ActiveSupport::Deprecation.warn(
39-
"Rails 6.1 will return Content-Type header without modification." \
39+
"Rails 7.0 will return Content-Type header without modification." \
4040
" If you want just the MIME type, please use `#media_type` instead."
4141
)
4242

43-
content_mime_type && content_mime_type.to_s
43+
content_mime_type&.to_s
4444
else
4545
super
4646
end

0 commit comments

Comments
 (0)