mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
Return complete Location URL in CompleteMultipartUpload (#5692)
Remove getLocation function. Fixes #5687
This commit is contained in:
@@ -430,7 +430,7 @@ func (api objectAPIHandlers) PutBucketHandler(w http.ResponseWriter, r *http.Req
|
||||
}
|
||||
|
||||
// Make sure to add Location information here only for bucket
|
||||
w.Header().Set("Location", getLocation(r))
|
||||
w.Header().Set("Location", path.Clean(r.URL.Path)) // Clean any trailing slashes.
|
||||
|
||||
writeSuccessResponseHeadersOnly(w)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user