Method: Undead::Driver#phantomjs_options

Defined in:
lib/undead/driver.rb

#phantomjs_optionsObject



38
39
40
41
42
43
44
45
46
47
# File 'lib/undead/driver.rb', line 38

def phantomjs_options
  list = options[:phantomjs_options] || []

  # PhantomJS defaults to only using SSLv3, which since POODLE (Oct 2014)
  # many sites have dropped from their supported protocols (eg PayPal,
  # Braintree).
  list += ["--ignore-ssl-errors=yes"] unless list.grep(/ignore-ssl-errors/).any?
  list += ["--ssl-protocol=TLSv1"] unless list.grep(/ssl-protocol/).any?
  list
end