Browse Source
Update weed/s3api/filer_multipart.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
pull/7550/head
Chris Lu
2 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
weed/s3api/filer_multipart.go
|
|
@ -186,7 +186,7 @@ func (s3a *S3ApiServer) completeMultipartUpload(r *http.Request, input *s3.Compl |
|
|
// Location uses the S3 endpoint that the client connected to
|
|
|
// Location uses the S3 endpoint that the client connected to
|
|
|
// Format: http://s3-endpoint/bucket/object (following AWS S3 API)
|
|
|
// Format: http://s3-endpoint/bucket/object (following AWS S3 API)
|
|
|
return &CompleteMultipartUploadResult{ |
|
|
return &CompleteMultipartUploadResult{ |
|
|
Location: aws.String(fmt.Sprintf("http://%s/%s%s", r.Host, *input.Bucket, *input.Key)), |
|
|
|
|
|
|
|
|
Location: aws.String(fmt.Sprintf("http://%s/%s/%s", r.Host, url.PathEscape(*input.Bucket), urlPathEscape(*input.Key))), |
|
|
Bucket: input.Bucket, |
|
|
Bucket: input.Bucket, |
|
|
ETag: aws.String("\"" + filer.ETagChunks(entry.GetChunks()) + "\""), |
|
|
ETag: aws.String("\"" + filer.ETagChunks(entry.GetChunks()) + "\""), |
|
|
Key: objectKey(input.Key), |
|
|
Key: objectKey(input.Key), |
|
|
|