We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fd72ba commit 3eb46c5Copy full SHA for 3eb46c5
apps/sim/lib/core/security/input-validation.ts
@@ -930,8 +930,7 @@ export async function secureFetchWithPinnedIP(
930
931
// Remove accept-encoding since Node.js http/https doesn't auto-decompress
932
// Headers are lowercase due to Web Headers API normalization in executeToolRequest
933
- const sanitizedHeaders = { ...options.headers }
934
- sanitizedHeaders['accept-encoding'] = undefined
+ const { 'accept-encoding': _, ...sanitizedHeaders } = options.headers ?? {}
935
936
const requestOptions: http.RequestOptions = {
937
hostname: parsed.hostname,
0 commit comments