summary refs log tree commit
diff options
context:
space:
mode:
-rw-r--r--lib/rack/handler.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rack/handler.rb b/lib/rack/handler.rb
index bc0a3bf8..024a855b 100644
--- a/lib/rack/handler.rb
+++ b/lib/rack/handler.rb
@@ -45,6 +45,9 @@ module Rack
       raise LoadError, "Couldn't find handler for: #{server_names.join(', ')}."
     end
 
+    SERVER_NAMES = %w(puma thin falcon webrick).freeze
+    private_constant :SERVER_NAMES
+
     def self.default
       # Guess.
       if ENV.include?("PHP_FCGI_CHILDREN")
@@ -54,7 +57,7 @@ module Rack
       elsif ENV.include?("RACK_HANDLER")
         self.get(ENV["RACK_HANDLER"])
       else
-        pick ['puma', 'thin', 'falcon', 'webrick']
+        pick SERVER_NAMES
       end
     end