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

master
Harshavardhana 9 years ago
parent d548316343
commit e7474bed43
  1. 2
      object-handlers.go

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

Loading…
Cancel
Save