mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Address Rails 7.0 will return Content-Type header without modification
This pull request addresses these warnings. ```ruby $ cd actionmailbox $ bin/test test/controllers/ingresses/relay/inbound_emails_controller_test.rb Run options: --seed 32561 DEPRECATION WARNING: Rails 7.0 will return Content-Type header without modification. If you want just the MIME type, please use `#media_type` instead. (called from call at /home/yahonda/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15) ...DEPRECATION WARNING: Rails 7.0 will return Content-Type header without modification. If you want just the MIME type, please use `#media_type` instead. (called from call at /home/yahonda/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15) .. Finished in 0.114883s, 43.5224 runs/s, 87.0447 assertions/s. 5 runs, 10 assertions, 0 failures, 0 errors, 0 skips $ ``` Follow-up https://github.com/rails/rails/commit/84055130713 related to https://github.com/rails/rails/pull/41251
This commit is contained in:
parent
beed933b9b
commit
51931f0bde
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ module ActionMailbox
|
|||
|
||||
private
|
||||
def require_valid_rfc822_message
|
||||
unless request.content_type == "message/rfc822"
|
||||
unless request.media_type == "message/rfc822"
|
||||
head :unsupported_media_type
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue