1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Fix server handler not found errors w/ webrick [#231]

This commit is contained in:
Simon Rozet 2009-05-20 13:33:31 -07:00 committed by Ryan Tomayko
parent 3d2988c66b
commit 6d76fb6104

View file

@ -922,7 +922,7 @@ module Sinatra
servers = Array(self.server)
servers.each do |server_name|
begin
return Rack::Handler.get(server_name.capitalize)
return Rack::Handler.get(server_name.downcase)
rescue LoadError
rescue NameError
end