Return complete Location URL in CompleteMultipartUpload (#5692)

Remove getLocation function.
Fixes #5687
This commit is contained in:
kannappanr
2018-03-23 13:46:57 -07:00
committed by GitHub
parent 1c91c7b54d
commit 7c747a9643
3 changed files with 6 additions and 7 deletions

View File

@@ -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)
}