Skip to content

Commit

Permalink
fix(http) Remove outgoing headers normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinjahn committed Jan 21, 2023
1 parent 9589d54 commit eefce64
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,6 @@ export const getRequestInfo = (
origin = `${optionsParsed.protocol || 'http:'}//${hostname}`;
}

const headers = optionsParsed.headers ?? {};
optionsParsed.headers = Object.keys(headers).reduce(
(normalizedHeader, key) => {
normalizedHeader[key.toLowerCase()] = headers[key];
return normalizedHeader;
},
{} as OutgoingHttpHeaders
);
// some packages return method in lowercase..
// ensure upperCase for consistency
const method = optionsParsed.method
Expand Down

0 comments on commit eefce64

Please sign in to comment.