|
|
@ -877,7 +877,6 @@ func (api objectAPIHandlers) CompleteMultipartUploadHandler(w http.ResponseWrite |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
md5Sum, err = objectAPI.CompleteMultipartUpload(bucket, object, uploadID, completeParts) |
|
|
|
md5Sum, err = objectAPI.CompleteMultipartUpload(bucket, object, uploadID, completeParts) |
|
|
|
|
|
|
|
|
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
err = errorCause(err) |
|
|
|
err = errorCause(err) |
|
|
|
errorIf(err, "Unable to complete multipart upload.") |
|
|
|
errorIf(err, "Unable to complete multipart upload.") |
|
|
@ -903,6 +902,9 @@ func (api objectAPIHandlers) CompleteMultipartUploadHandler(w http.ResponseWrite |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Set etag.
|
|
|
|
|
|
|
|
w.Header().Set("ETag", "\""+md5Sum+"\"") |
|
|
|
|
|
|
|
|
|
|
|
// Write success response.
|
|
|
|
// Write success response.
|
|
|
|
w.Write(encodedSuccessResponse) |
|
|
|
w.Write(encodedSuccessResponse) |
|
|
|
w.(http.Flusher).Flush() |
|
|
|
w.(http.Flusher).Flush() |
|
|
|