We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcf65aa commit 7af5c18Copy full SHA for 7af5c18
apps/sim/lib/core/security/input-validation.ts
@@ -988,6 +988,11 @@ export function secureFetchWithPinnedIP(
988
const chunks: Buffer[] = []
989
990
res.on('data', (chunk: Buffer) => chunks.push(chunk))
991
+
992
+ res.on('error', (error) => {
993
+ reject(error)
994
+ })
995
996
res.on('end', () => {
997
const bodyBuffer = Buffer.concat(chunks)
998
const body = bodyBuffer.toString('utf-8')
0 commit comments