Skip to content

Commit

Permalink
Remove default Thin handler. Closes #920
Browse files Browse the repository at this point in the history
  • Loading branch information
jnicklas committed Dec 31, 2012
1 parent 7045898 commit 5b164d4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/capybara.rb
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,8 @@ def string(html)
# @param [Fixnum] port The port to run the application on
#
def run_default_server(app, port)
begin
require 'rack/handler/thin'
Thin::Logging.silent = true
Rack::Handler::Thin.run(app, :Port => port)
rescue LoadError
require 'rack/handler/webrick'
Rack::Handler::WEBrick.run(app, :Port => port, :AccessLog => [], :Logger => WEBrick::Log::new(nil, 0))
end
require 'rack/handler/webrick'
Rack::Handler::WEBrick.run(app, :Port => port, :AccessLog => [], :Logger => WEBrick::Log::new(nil, 0))
end

##
Expand Down

0 comments on commit 5b164d4

Please sign in to comment.