Skip to content

Commit

Permalink
debugging headers
Browse files Browse the repository at this point in the history
  • Loading branch information
thisismana committed Jun 26, 2024
1 parent fd8cb72 commit 52019c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/image-handler/src/image-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion source/image-handler/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function handler(event: APIGatewayProxyEventV2): Promise<APIGateway
try {
const request: ImageRequest = await imageRequest.setup(event);
logger.appendKeys({ ...request, originalImage: undefined });
logger.info('Image manipulation request');
logger.info('Image manipulation request', { headers: event.headers });

let now = Date.now();
if (request.Expires && request.Expires.getTime() < now) {
Expand Down

0 comments on commit 52019c9

Please sign in to comment.