I still have this problem in 2018 for some Selenium teams. Workaround:
module Selenium
module WebDriver
module Remote
module Http
class Common
ORIGINAL_DEFAULT_HEADERS = DEFAULT_HEADERS
remove_const :DEFAULT_HEADERS
DEFAULT_HEADERS = ORIGINAL_DEFAULT_HEADERS.merge( 'Content-Type' => 'application/x-www-form-urlencoded' ).freeze
end
end
end
end
end
source
share