This commit is contained in:
Chris Lu
2019-07-21 21:51:38 -07:00
parent 79762385bd
commit 862c2cb8e6
6 changed files with 9 additions and 13 deletions

View File

@@ -101,9 +101,9 @@ func (s3a *S3ApiServer) completeMultipartUpload(ctx context.Context, input *s3.C
output = &CompleteMultipartUploadResult{
CompleteMultipartUploadOutput: s3.CompleteMultipartUploadOutput{
Location: aws.String(fmt.Sprintf("http://%s%s/%s", s3a.option.Filer, dirName, entryName)),
Bucket: input.Bucket,
ETag: aws.String("\"" + filer2.ETag(finalParts) + "\""),
Key: objectKey(input.Key),
Bucket: input.Bucket,
ETag: aws.String("\"" + filer2.ETag(finalParts) + "\""),
Key: objectKey(input.Key),
},
}

View File

@@ -151,4 +151,4 @@ func objectKey(key *string) *string {
return &t
}
return key
}
}