agent-harness / tasks /patches /TASK_CR_009_source.patch
cuber12's picture
Publish agent harness research code and paper artifacts
d61821a verified
Raw
History Blame Contribute Delete
704 Bytes
diff --git a/cache/s3v2/s3.go b/cache/s3v2/s3.go
index e8a21d6b..ddb0fd06 100644
--- a/cache/s3v2/s3.go
+++ b/cache/s3v2/s3.go
@@ -168,6 +168,12 @@ func (c *s3Client) PresignURL(ctx context.Context,
Key: aws.String(objectName),
}
presignedReq, err = c.presignClient.PresignGetObject(ctx, getObjectInput, s3.WithPresignExpires(expires))
+ case http.MethodHead:
+ headObjectInput := &s3.HeadObjectInput{
+ Bucket: aws.String(bucketName),
+ Key: aws.String(objectName),
+ }
+ presignedReq, err = c.presignClient.PresignHeadObject(ctx, headObjectInput, s3.WithPresignExpires(expires))
case http.MethodPut:
putObjectInput := &s3.PutObjectInput{
Bucket: aws.String(bucketName),