mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Remove default Thin handler. Closes #920
This commit is contained in:
parent
70458987e5
commit
5b164d4f1c
1 changed files with 2 additions and 8 deletions
|
@ -175,14 +175,8 @@ module Capybara
|
|||
# @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
|
||||
|
||||
##
|
||||
|
|
Loading…
Reference in a new issue