From 59fd5a1db575128ad1d472dc11dfe8ac5e6ff3e1 Mon Sep 17 00:00:00 2001 From: Akinori Mitani Date: Sat, 30 Nov 2024 09:37:13 -1000 Subject: [PATCH] S3: HeadObject operation requires GetObject auth (#8334) --- moto/s3/responses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/s3/responses.py b/moto/s3/responses.py index d0c82428a953..c4427212cddb 100644 --- a/moto/s3/responses.py +++ b/moto/s3/responses.py @@ -124,7 +124,7 @@ }, }, "KEY": { - "HEAD": {"DEFAULT": "HeadObject"}, + "HEAD": {"DEFAULT": "GetObject"}, "GET": { "uploadId": "ListMultipartUploadParts", "acl": "GetObjectAcl",