From e6ef030840603b90f3c747026fbf6c7e50c1f175 Mon Sep 17 00:00:00 2001 From: Pam Selle Date: Fri, 9 Nov 2018 17:54:23 -0500 Subject: [PATCH] fix(collection): Normalizes text by case We were losing User-Agent headers because they were not user-agent. Normalize data fix #32 --- src/shimmerHttp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shimmerHttp.js b/src/shimmerHttp.js index 7553e9e..c422282 100644 --- a/src/shimmerHttp.js +++ b/src/shimmerHttp.js @@ -129,7 +129,7 @@ const defaultKeysToRecord = new Map( function filterData(config = {}, completeHttpObj = {}) { const whitelistedObject = pickBy(completeHttpObj, (v, k) => - defaultKeysToRecord.has(k) + defaultKeysToRecord.has(k.toLowerCase()) ); if (typeof config.filter === 'function') { return config.filter(whitelistedObject, completeHttpObj);