diff --git a/source/image-handler/src/image-request.ts b/source/image-handler/src/image-request.ts index 2885c9f24..33c58e43c 100644 --- a/source/image-handler/src/image-request.ts +++ b/source/image-handler/src/image-request.ts @@ -89,8 +89,8 @@ export class ImageRequest { } } - this.request_id = event.headers['X-Amz-Cf-Id']; - this.accept = event.headers.Accept || event.headers.accept; + this.request_id = event.headers['x-amz-cf-id']; + this.accept = event.headers.accept; delete this.s3; diff --git a/source/image-handler/src/index.ts b/source/image-handler/src/index.ts index d760dfba2..d5d2f9505 100755 --- a/source/image-handler/src/index.ts +++ b/source/image-handler/src/index.ts @@ -26,7 +26,7 @@ export async function handler(event: APIGatewayProxyEventV2): Promise