Skip to content

Commit facb93a

Browse files
committed
chore(proxy): revert log redaction and run prettier
1 parent b413708 commit facb93a

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

proxy.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,7 @@ const proxyRequest: Connect.SimpleHandleFunction = (req, res) => {
117117
headers:`,
118118
);
119119
Object.entries(req.headers).forEach(([name, value]) => {
120-
// Redact sensitive headers in logs
121-
const isSensitive = ['cookie', 'authorization'].includes(name.toLowerCase());
122-
console.log(
123-
'\t',
124-
'\x1b[32m',
125-
name + ':',
126-
'\x1b[37m',
127-
isSensitive ? '[REDACTED]' : value,
128-
);
120+
console.log('\t', '\x1b[32m', name + ':', '\x1b[37m', value);
129121
});
130122
console.log('\x1b[36m', '----------------');
131123

0 commit comments

Comments
 (0)