mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #13255 from overleaf/em-socket-leak-detection
Reintroduce socket leak detection in all services GitOrigin-RevId: 0a9a1ced0b886dbb267cb46beb5da7d0133d39aa
This commit is contained in:
@@ -84,7 +84,9 @@ const REDACT_REGEX = /^(Authorization|Set-Cookie|Cookie):.*?\r/gim
|
||||
function redactObject(obj) {
|
||||
const result = {}
|
||||
for (const [key, value] of Object.entries(obj)) {
|
||||
if (key === 'headers') {
|
||||
if (value == null) {
|
||||
result[key] = null
|
||||
} else if (key === 'headers') {
|
||||
// remove headers with sensitive information
|
||||
result[key] = flattenHeaders(value).replace(
|
||||
REDACT_REGEX,
|
||||
|
||||
Reference in New Issue
Block a user