location: Return a set location properly on complete multipart upload request.

This commit is contained in:
Harshavardhana 2015-12-28 15:19:59 -08:00
parent d548316343
commit e7474bed43

View File

@ -475,7 +475,7 @@ func (api CloudStorageAPI) CompleteMultipartUploadHandler(w http.ResponseWriter,
}
return
}
response := generateCompleteMultpartUploadResponse(bucket, object, "", metadata.Md5)
response := generateCompleteMultpartUploadResponse(bucket, object, req.URL.String(), metadata.Md5)
encodedSuccessResponse := encodeSuccessResponse(response)
// write headers
setCommonHeaders(w, len(encodedSuccessResponse))