Skip to content

Commit

Permalink
fix(nodejs): include auth in same domain redirects (#8437)
Browse files Browse the repository at this point in the history
Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
  • Loading branch information
alfonso-presa and diemol authored Jul 30, 2020
1 parent 7e61c86 commit 84af7b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions javascript/node/selenium-webdriver/http/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ function sendRequest(options, onOk, onError, opt_data, opt_proxy, opt_retries) {
if (!location.hostname) {
location.hostname = hostname;
location.port = port;
location.auth = options.auth;
}

request.abort();
Expand All @@ -222,6 +223,7 @@ function sendRequest(options, onOk, onError, opt_data, opt_proxy, opt_retries) {
hostname: location.hostname,
port: location.port,
path: location.path,
auth: location.auth,
pathname: location.pathname,
search: location.search,
hash: location.hash,
Expand Down

0 comments on commit 84af7b1

Please sign in to comment.