Skip to content

Commit 5dd72ce

Browse files
Merge pull request #9512 from p8/rails/reduce-default-headers
[rails] Reduce headers to required headers only
2 parents b7bf1e9 + 90a7bb1 commit 5dd72ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frameworks/Ruby/rails/config/application.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ class Application < Rails::Application
2828
# Common ones are `templates`, `generators`, or `middleware`, for example.
2929
config.autoload_lib(ignore: %w[assets tasks])
3030

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

3334
config.api_only = true
3435

0 commit comments

Comments
 (0)