You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: javascript/node/selenium-webdriver/http/index.js
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,7 @@ function getRequestOptions(aUrl) {
54
54
options.search=null
55
55
options.hash=null
56
56
options.path=options.pathname
57
+
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.
0 commit comments