Skip to content

Commit

Permalink
fix(collection): Normalizes text by case
Browse files Browse the repository at this point in the history
We were losing User-Agent headers because they were not user-agent. Normalize data

fix #32
  • Loading branch information
Pam Selle committed Nov 19, 2018
1 parent b9c17b9 commit 1786be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shimmerHttp.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,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);
Expand Down

0 comments on commit 1786be1

Please sign in to comment.