mirror of
https://github.com/distribution/distribution
synced 2024-11-06 19:35:52 +01:00
Merge pull request #2215 from AlvinFeng/expires
Remove expires tag from s3 upload
This commit is contained in:
commit
7b9ebdc54f
@ -701,15 +701,11 @@ func (d *driver) copy(ctx context.Context, sourcePath string, destPath string) e
|
||||
return nil
|
||||
}
|
||||
|
||||
// Even in the worst case, a multipart copy should take no more
|
||||
// than a few minutes, so 30 minutes is very conservative.
|
||||
expires := time.Now().Add(time.Duration(30) * time.Minute)
|
||||
createResp, err := d.S3.CreateMultipartUpload(&s3.CreateMultipartUploadInput{
|
||||
Bucket: aws.String(d.Bucket),
|
||||
Key: aws.String(d.s3Path(destPath)),
|
||||
ContentType: d.getContentType(),
|
||||
ACL: d.getACL(),
|
||||
Expires: aws.Time(expires),
|
||||
SSEKMSKeyId: d.getSSEKMSKeyID(),
|
||||
ServerSideEncryption: d.getEncryptionMode(),
|
||||
StorageClass: d.getStorageClass(),
|
||||
|
Loading…
Reference in New Issue
Block a user