Skip to content
This repository has been archived by the owner on Nov 27, 2020. It is now read-only.

Don't use https as remote debugger scheme. #861

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions lib/capybara/poltergeist/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,7 @@ def basic_authorize(user, password)

def debug
if @options[:inspector]
# Fall back to default scheme
scheme = URI.parse(browser.current_url).scheme rescue nil
scheme = 'http' if scheme != 'https'
inspector.open(scheme)
inspector.open('http')
pause
else
raise Error, "To use the remote debugging, you have to launch the driver " \
Expand Down