We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c38db72 + 388f602 commit 3921f24Copy full SHA for 3921f24
actionpack/lib/action_dispatch/http/mime_negotiation.rb
@@ -36,11 +36,11 @@ def content_mime_type
36
def content_type
37
if self.class.return_only_media_type_on_content_type
38
ActiveSupport::Deprecation.warn(
39
- "Rails 6.1 will return Content-Type header without modification." \
+ "Rails 7.0 will return Content-Type header without modification." \
40
" If you want just the MIME type, please use `#media_type` instead."
41
)
42
43
- content_mime_type && content_mime_type.to_s
+ content_mime_type&.to_s
44
else
45
super
46
end
0 commit comments