Skip to content

Commit 90a7bb1

Browse files
committed
[rails] Reduce headers to required headers only.
+----------------------+-------+--------------+ | branch_name|fortune|weighted_score| +----------------------+-------+--------------+ | master| 14884| 60| |reduce-default-headers| 15730| 64| +----------------------+-------+--------------+
1 parent ddd0952 commit 90a7bb1

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)