Skip to content

Commit

Permalink
fix PutObjectResponse to handle CompleteMultipartUploadResponse (#107)
Browse files Browse the repository at this point in the history
Signed-off-by: Bala.FA <[email protected]>
  • Loading branch information
balamurugana authored Mar 6, 2024
1 parent 0c9f75d commit ebb3c60
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/response.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ struct PutObjectResponse : public Response {

PutObjectResponse(const Response& resp) : Response(resp) {}

PutObjectResponse(const CompleteMultipartUploadResponse& resp)
: Response(resp) {
this->etag = resp.etag;
this->version_id = resp.version_id;
}

PutObjectResponse(error::Error err) : Response(err) {}
}; // struct PutObjectResponse

Expand Down

0 comments on commit ebb3c60

Please sign in to comment.