From 59b55d3c29429dd219b7f241338222b6e200feb6 Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Sun, 1 Nov 2020 14:31:29 +1100 Subject: [PATCH] Fix cookie case sensitivity --- src/drivers/npm/driver.js | 2 +- src/drivers/webextension/js/driver.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index ae83bce7d..eb912513e 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -605,7 +605,7 @@ class Site { const cookies = (await page.cookies()).reduce( (cookies, { name, value }) => ({ ...cookies, - [name]: [value], + [name.toLowerCase()]: [value], }), {} ) diff --git a/src/drivers/webextension/js/driver.js b/src/drivers/webextension/js/driver.js index 358e1537e..eedc4463a 100644 --- a/src/drivers/webextension/js/driver.js +++ b/src/drivers/webextension/js/driver.js @@ -325,7 +325,7 @@ const Driver = { ).reduce( (cookies, { name, value }) => ({ ...cookies, - [name]: [value], + [name.toLowerCase()]: [value], }), {} )