From 87086cb1098eed66beb6043efccc960a40c62221 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 11 Nov 2020 14:29:54 +0200 Subject: [PATCH] fix(deps): update dependency netlify-redirector to v0.2.1 (#1550) --- package-lock.json | 6 +++--- src/utils/rules-proxy.js | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4afc6a4c153..5a7550bb2f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13286,9 +13286,9 @@ } }, "netlify-redirector": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/netlify-redirector/-/netlify-redirector-0.2.0.tgz", - "integrity": "sha512-5SSUu++MXvE/tik90Hx7lzISBHCl5k4TqpVeTuBEoHp5K7uWitY7c3MjPNiY3kB83GSZiTNLbuIY7bo6mpyU3Q==" + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/netlify-redirector/-/netlify-redirector-0.2.1.tgz", + "integrity": "sha512-17vDR9p1Loanp+vd57y+b6WlKb5X+qb0LZ44oTYsKJbdonz4Md+Ybv1lzH1w1aKm5YWWXHR8LMpWyY9bjlAJKw==" }, "nice-try": { "version": "1.0.5", diff --git a/src/utils/rules-proxy.js b/src/utils/rules-proxy.js index 9b7b4371789..b00a19a4cd8 100644 --- a/src/utils/rules-proxy.js +++ b/src/utils/rules-proxy.js @@ -109,9 +109,6 @@ const createRewriter = async function ({ distDir, projectDir, jwtSecret, jwtRole path: reqUrl.pathname, query: reqUrl.search.slice(1), headers, - // passing an empty object for cookies is required due to a bug in netlify-redirector - // actual cookie values are retrieved via getCookie - cookies: {}, cookieValues, getHeader: (name) => headers[name.toLowerCase()] || '', getCookie: (key) => cookieValues[key] || '',