1
0
mirror of https://github.com/ceph/ceph synced 2024-12-23 20:03:56 +00:00

Merge pull request from Jing-Scott/dev/swift-ref

rgw: the swift container acl should support field .ref

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
This commit is contained in:
Radoslaw Zarzynski 2017-01-30 12:44:21 +01:00 committed by GitHub
commit b8e7a276f6

View File

@ -59,6 +59,7 @@ static bool uid_is_public(const string& uid)
return false;
return sub.compare(".r") == 0 ||
sub.compare(".ref") == 0 ||
sub.compare(".referer") == 0 ||
sub.compare(".referrer") == 0;
}
@ -75,6 +76,7 @@ static bool extract_referer_urlspec(const std::string& uid,
url_spec = uid.substr(pos + 1);
return sub.compare(".r") == 0 ||
sub.compare(".ref") == 0 ||
sub.compare(".referer") == 0 ||
sub.compare(".referrer") == 0;
}