Skip to content

Commit

Permalink
Merge pull request #9512 from p8/rails/reduce-default-headers
Browse files Browse the repository at this point in the history
[rails] Reduce headers to required headers only
  • Loading branch information
msmith-techempower authored Jan 9, 2025
2 parents b7bf1e9 + 90a7bb1 commit 5dd72ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frameworks/Ruby/rails/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class Application < Rails::Application
# Common ones are `templates`, `generators`, or `middleware`, for example.
config.autoload_lib(ignore: %w[assets tasks])

config.action_dispatch.default_headers.merge!('Server' => 'WebServer')
# Only use headers required by TechEmpower.
config.action_dispatch.default_headers = {'Server' => 'Rails'}

config.api_only = true

Expand Down

0 comments on commit 5dd72ce

Please sign in to comment.