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 iopipe#32
  • Loading branch information
Pam Selle committed Nov 9, 2018
1 parent c16d28e commit e6ef030
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 @@ -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);
Expand Down

0 comments on commit e6ef030

Please sign in to comment.