Browse Source

Merge pull request #9512 from p8/rails/reduce-default-headers

[rails] Reduce headers to required headers only
Mike Smith 7 months ago
parent
commit
5dd72ce181
1 changed files with 2 additions and 1 deletions
  1. 2 1
      frameworks/Ruby/rails/config/application.rb

+ 2 - 1
frameworks/Ruby/rails/config/application.rb

@@ -28,7 +28,8 @@ module Hello
     # 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