Skip to content

Commit

Permalink
[js] Support Node 17 and above (SeleniumHQ#11262)
Browse files Browse the repository at this point in the history
  • Loading branch information
pujagani authored Nov 15, 2022
1 parent fc4a104 commit b497b49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions javascript/node/selenium-webdriver/http/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function getRequestOptions(aUrl) {
options.search = null
options.hash = null
options.path = options.pathname
options.hostname = options.hostname === 'localhost' ? '127.0.0.1' : options.hostname // To support Node 17 and above. Refer https://github.com/nodejs/node/issues/40702 for details.
return options
}

Expand Down

0 comments on commit b497b49

Please sign in to comment.