Skip to content

Commit

Permalink
rgw: different test for multi object delete
Browse files Browse the repository at this point in the history
We need to check for the existence of the sub-resource.

Signed-off-by: Yehuda Sadeh <[email protected]>
  • Loading branch information
yehudasa committed Sep 26, 2012
1 parent b74b0f9 commit 67535f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_rest_s3.cc
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ RGWOp *RGWHandler_REST_S3::get_post_op()
else
return new RGWInitMultipart_REST_S3;
}
else if ( s->request_params == "delete" ) {
else if (s->args.sub_resource_exists("delete")) {
return new RGWDeleteMultiObj_REST_S3;
}

Expand Down

0 comments on commit 67535f2

Please sign in to comment.