Skip to content

Commit

Permalink
Switch from shouty case to lowercase for header sanitization.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed Oct 23, 2024
1 parent 1b0ffc8 commit aaf21c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function _sanitizeHeaders({httpMessage, headers = sanitizeHeaders}) {
for(const header of headers) {
// sanitize the headers to prevent
// authn tokens / information potentially in logs
newHeaders.set(header, '** SANITIZED TO PREVENT EXPOSING OF SECRETS ***');
newHeaders.set(header, 'sanitized');
}
return newHeaders;
}

0 comments on commit aaf21c8

Please sign in to comment.