Skip to content

Commit

Permalink
Remove unnecessary overriding of Content-Type
Browse files Browse the repository at this point in the history
It's set by default for all requests since 2eb4235.
  • Loading branch information
p0deje committed Mar 23, 2018
1 parent 2eb4235 commit 6fe22c3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion rb/lib/selenium/webdriver/remote/http/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ def call(verb, url, command_hash)

if command_hash
payload = JSON.generate(command_hash)
headers['Content-Type'] = "#{CONTENT_TYPE}; charset=utf-8"
headers['Content-Length'] = payload.bytesize.to_s if [:post, :put].include?(verb)

WebDriver.logger.info(" >>> #{url} | #{payload}")
Expand Down

0 comments on commit 6fe22c3

Please sign in to comment.