From 6d76fb6104d5b7627b2d1750b0d043823aab93d8 Mon Sep 17 00:00:00 2001 From: Simon Rozet Date: Wed, 20 May 2009 13:33:31 -0700 Subject: [PATCH] Fix server handler not found errors w/ webrick [#231] --- lib/sinatra/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sinatra/base.rb b/lib/sinatra/base.rb index 9cb2ee56..4710ca78 100644 --- a/lib/sinatra/base.rb +++ b/lib/sinatra/base.rb @@ -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