Skip to content

Commit 3eb46c5

Browse files
committed
fix lint
1 parent 6fd72ba commit 3eb46c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -930,8 +930,7 @@ export async function secureFetchWithPinnedIP(
930930

931931
// Remove accept-encoding since Node.js http/https doesn't auto-decompress
932932
// Headers are lowercase due to Web Headers API normalization in executeToolRequest
933-
const sanitizedHeaders = { ...options.headers }
934-
sanitizedHeaders['accept-encoding'] = undefined
933+
const { 'accept-encoding': _, ...sanitizedHeaders } = options.headers ?? {}
935934

936935
const requestOptions: http.RequestOptions = {
937936
hostname: parsed.hostname,

0 commit comments

Comments
 (0)