Skip to content

Commit

Permalink
Merge pull request #10187 from dreamhost/wip-16618
Browse files Browse the repository at this point in the history
rgw: fix multi-delete query param parsing.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
  • Loading branch information
yehudasa committed Jul 14, 2016
2 parents 6785393 + a7016e1 commit f01f219
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rgw/rgw_rest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@ int RGWHandler_REST::read_permissions(RGWOp* op_obj)
case OP_POST:
case OP_COPY:
/* is it a 'multi-object delete' request? */
if (s->info.request_params == "delete") {
if (s->info.args.exists("delete")) {
only_bucket = true;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/rgw/rgw_rest_s3.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2866,7 +2866,7 @@ RGWOp *RGWHandler_REST_Bucket_S3::op_delete()

RGWOp *RGWHandler_REST_Bucket_S3::op_post()
{
if ( s->info.request_params == "delete" ) {
if (s->info.args.exists("delete")) {
return new RGWDeleteMultiObj_ObjStore_S3;
}

Expand Down

0 comments on commit f01f219

Please sign in to comment.