Skip to content

Commit

Permalink
Merge pull request #5730: RGW returns requested bucket name raw in "B…
Browse files Browse the repository at this point in the history
…ucket" response header

Reviewed-by: Loic Dachary <ldachary@redhat.com>
  • Loading branch information
ldachary committed Oct 20, 2015
2 parents 38120bc + e7931a7 commit dc5a4e1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/rgw/rgw_rest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,11 @@ void dump_bucket_from_state(struct req_state *s)
{
int expose_bucket = g_conf->rgw_expose_bucket;
if (expose_bucket) {
if (!s->bucket_name_str.empty())
s->cio->print("Bucket: \"%s\"\r\n", s->bucket_name_str.c_str());
if (!s->bucket_name_str.empty()) {
string b;
url_encode(s->bucket_name_str, b);
s->cio->print("Bucket: %s\r\n", b.c_str());
}
}
}

Expand Down

0 comments on commit dc5a4e1

Please sign in to comment.