Skip to content

Commit

Permalink
Allow specifying a default handler
Browse files Browse the repository at this point in the history
  • Loading branch information
joefiorini committed Aug 5, 2013
1 parent 6829a8a commit 9a6316b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rack/handler.rb
Expand Up @@ -53,7 +53,9 @@ def self.default(options = {})
Rack::Handler::FastCGI
elsif ENV.include?("REQUEST_METHOD")
Rack::Handler::CGI
else
elsif ENV.include?("RACK_HANDLER")
self.get(ENV["RACK_HANDLER"])
else
pick ['thin', 'puma', 'webrick']
end
end
Expand Down

0 comments on commit 9a6316b

Please sign in to comment.