Skip to content

Commit

Permalink
Update leak.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Sampaguitas committed Feb 17, 2022
1 parent 2d822ad commit afa27ef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/leak.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('Information Leak', function () {
it('should not forward cookie headers when the request has a redirect', function (done) {

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

request({
url: 'https://httpbingo.org/bearer?url=https://google.com/',
url: 'https://httpbingo.org/redirect-to?url=http://httpbingo.org/bearer',
headers: {
'Content-Type': 'application/json',
'cookie': 'ajs_anonymous_id=1234567890',
Expand All @@ -34,4 +34,5 @@ describe('Information Leak', function () {
done();
});
});
});

});

0 comments on commit afa27ef

Please sign in to comment.