Skip to content

Commit afa27ef

Browse files
authored
Update leak.test.js
1 parent 2d822ad commit afa27ef

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/leak.test.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('Information Leak', function () {
88
it('should not forward cookie headers when the request has a redirect', function (done) {
99

1010
request({
11-
url: 'https://httpbingo.org/cookies?url=https://google.com/',
11+
url: 'https://httpbingo.org/redirect-to?url=http://httpbingo.org/cookies',
1212
headers: {
1313
'Content-Type': 'application/json',
1414
'cookie': 'ajs_anonymous_id=1234567890',
@@ -23,7 +23,7 @@ describe('Information Leak', function () {
2323
it('should not forward authorization headers when the request has a redirect', function (done) {
2424

2525
request({
26-
url: 'https://httpbingo.org/bearer?url=https://google.com/',
26+
url: 'https://httpbingo.org/redirect-to?url=http://httpbingo.org/bearer',
2727
headers: {
2828
'Content-Type': 'application/json',
2929
'cookie': 'ajs_anonymous_id=1234567890',
@@ -34,4 +34,5 @@ describe('Information Leak', function () {
3434
done();
3535
});
3636
});
37-
});
37+
38+
});

0 commit comments

Comments
 (0)