Skip to content

Commit

Permalink
Merge pull request #590 from joefiorini/default-handler
Browse files Browse the repository at this point in the history
Allow specifying a default handler
  • Loading branch information
raggi committed Dec 4, 2013
2 parents c3ccaf5 + 9a6316b commit 27d1154
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 27d1154

Please sign in to comment.