projects
/
squeep-logger-json-console
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
337ca7b
)
lint cleanup
author
Justin Wind
<justin.wind+git@gmail.com>
Sun, 24 Mar 2024 21:29:59 +0000
(14:29 -0700)
committer
Justin Wind
<justin.wind+git@gmail.com>
Sun, 24 Mar 2024 21:29:59 +0000
(14:29 -0700)
lib/json-replacers.js
patch
|
blob
|
history
diff --git
a/lib/json-replacers.js
b/lib/json-replacers.js
index 51eacb3cb5f2c8a259ce0bf55496ec64391fbb79..14ac3343ac348e7803eeac458b8386a1a18f266b 100644
(file)
--- a/
lib/json-replacers.js
+++ b/
lib/json-replacers.js
@@
-62,9
+62,10
@@
function replacerHttpIncomingMessage(_key, value) {
// This blurs entire auth string if no space found, because -1 from indexOf.
const blurredAuthHeader = authHeader.slice(0, spaceIndex + 1) + '*'.repeat(authHeader.length - (spaceIndex + 1));
// New headers object, as we change it.
- newValue.headers = Object.assign({}, newValue.headers, {
+ newValue.headers = {
+ ...newValue.headers,
authorization: blurredAuthHeader,
- }
)
;
+ };
}
value = newValue;
}