agent-harness / tasks /patches /TASK_S2_R001_018_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 8d4ea943..bab238af 100644
--- a/cache/s3v2/s3.go
+++ b/cache/s3v2/s3.go
@@ -169,6 +169,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),