diff --git a/src/handlers/handlerUtils.ts b/src/handlers/handlerUtils.ts index 1690aab5e..6bfc2f0f8 100644 --- a/src/handlers/handlerUtils.ts +++ b/src/handlers/handlerUtils.ts @@ -53,7 +53,7 @@ export function constructRequest( const headersToAvoidForCloudflare = ['expect']; const headersToIgnore = [ ...(env(c).CUSTOM_HEADERS_TO_IGNORE ?? []), - headersToAvoidForCloudflare, + ...headersToAvoidForCloudflare, ]; headersToIgnore.push('content-length'); Object.keys(requestHeaders).forEach((key: string) => {