Skip to content

Commit

Permalink
Fix server handler not found errors w/ webrick [#231]
Browse files Browse the repository at this point in the history
  • Loading branch information
sr authored and rtomayko committed May 20, 2009
1 parent 3d2988c commit 6d76fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sinatra/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ def detect_rack_handler
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
Expand Down

0 comments on commit 6d76fb6

Please sign in to comment.