Skip to content

Commit 31e97df

Browse files
committed
fix(security): cleanup abort listener when maxResponseBytes limit is exceeded
1 parent 0073513 commit 31e97df

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/sim/lib/core/security/input-validation.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ export async function secureFetchWithPinnedIP(
392392
maxResponseBytes > 0 &&
393393
totalBytes > maxResponseBytes
394394
) {
395+
cleanupAbort()
395396
controller.error(
396397
new Error(`Response exceeded maximum size of ${maxResponseBytes} bytes`)
397398
)

0 commit comments

Comments
 (0)