From afa27ef7e199f845151ae91663bd5aae9a30a6c3 Mon Sep 17 00:00:00 2001 From: Timothee Desurmont <40275437+Sampaguitas@users.noreply.github.com> Date: Thu, 17 Feb 2022 20:48:54 +0400 Subject: [PATCH] Update leak.test.js --- test/leak.test.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/leak.test.js b/test/leak.test.js index c497699..00f2092 100644 --- a/test/leak.test.js +++ b/test/leak.test.js @@ -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', @@ -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', @@ -34,4 +34,5 @@ describe('Information Leak', function () { done(); }); }); -}); \ No newline at end of file + +});