Skip to content

Commit

Permalink
400 instead of 500 on Rack::Multipart::EmptyContentError
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins authored and simi committed Feb 19, 2024
1 parent 6a3c35c commit 551149a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ class Application < Rails::Application
config.autoload_paths << "#{root}/app/views/components"

config.active_support.cache_format_version = 7.1

config.action_dispatch.rescue_responses["Rack::Multipart::EmptyContentError"] = :bad_request
end

def self.config
Expand Down

0 comments on commit 551149a

Please sign in to comment.