Skip to content
Browse files

Remove default Thin handler. Closes #920

  • Loading branch information...
1 parent 7045898 commit 5b164d4f1c256f24b6c42475ea15466fcd3f012b @jnicklas committed Dec 31, 2012
Showing with 2 additions and 8 deletions.
  1. +2 −8 lib/capybara.rb
View
10 lib/capybara.rb
@@ -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
##

0 comments on commit 5b164d4

Please sign in to comment.
Something went wrong with that request. Please try again.