Remove default Thin handler. Closes #920
This commit is contained in:
parent
70458987e5
commit
5b164d4f1c
|
@ -175,14 +175,8 @@ module Capybara
|
||||||
# @param [Fixnum] port The port to run the application on
|
# @param [Fixnum] port The port to run the application on
|
||||||
#
|
#
|
||||||
def run_default_server(app, port)
|
def run_default_server(app, port)
|
||||||
begin
|
require 'rack/handler/webrick'
|
||||||
require 'rack/handler/thin'
|
Rack::Handler::WEBrick.run(app, :Port => port, :AccessLog => [], :Logger => WEBrick::Log::new(nil, 0))
|
||||||
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
|
|
||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
Loading…
Reference in New Issue