diff --git a/tests/test-redirect-auth.js b/tests/test-redirect-auth.js index 7aef6edcc..93b606537 100644 --- a/tests/test-redirect-auth.js +++ b/tests/test-redirect-auth.js @@ -18,6 +18,7 @@ request = request.defaults({ user: 'test', pass: 'testing' }, + allowInsecureRedirect: true, rejectUnauthorized: false }) diff --git a/tests/test-redirect-complex.js b/tests/test-redirect-complex.js index 072b5986c..2ba3a65ff 100644 --- a/tests/test-redirect-complex.js +++ b/tests/test-redirect-complex.js @@ -67,6 +67,7 @@ tape('lots of redirects', function (t) { request({ url: (i % 2 ? s.url : ss.url) + '/a', headers: { 'x-test-key': key }, + allowInsecureRedirect: true, rejectUnauthorized: false }, function (err, res, body) { t.equal(err, null) diff --git a/tests/test-tunnel.js b/tests/test-tunnel.js index b78649bc8..10c045c55 100644 --- a/tests/test-tunnel.js +++ b/tests/test-tunnel.js @@ -356,6 +356,7 @@ function addTests () { 'https->http over http, tunnel=true', { url: ss.url + '/redirect/http', + allowInsecureRedirect: true, proxy: s.url, tunnel: true }, @@ -372,6 +373,7 @@ function addTests () { 'https->http over http, tunnel=false', { url: ss.url + '/redirect/http', + allowInsecureRedirect: true, proxy: s.url, tunnel: false }, @@ -388,6 +390,7 @@ function addTests () { 'https->http over http, tunnel=default', { url: ss.url + '/redirect/http', + allowInsecureRedirect: true, proxy: s.url }, [