Permalink
Browse files

Rack::Handler.get expects capitalized server names

  • Loading branch information...
1 parent 0ceb73c commit e9cc0f719d64dd80b6b7a5f524be80152b41e2fe @reinh reinh committed with rtomayko Apr 9, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sinatra/base.rb
View
@@ -887,7 +887,7 @@ def detect_rack_handler
servers = Array(self.server)
servers.each do |server_name|
begin
- return Rack::Handler.get(server_name)
+ return Rack::Handler.get(server_name.capitalize)
rescue LoadError
rescue NameError
end

0 comments on commit e9cc0f7

Please sign in to comment.