mirror of
https://github.com/ceph/ceph
synced 2024-12-16 00:15:35 +00:00
Merge pull request #22145 from Jeegn-Chen/wip-issue-24223
rgw: reject invalid methods in validate_cors_rule_method Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
commit
bb0b5cd000
@ -998,7 +998,7 @@ static bool validate_cors_rule_method(RGWCORSRule *rule, const char *req_meth) {
|
||||
else if (strcmp(req_meth, "DELETE") == 0) flags = RGW_CORS_DELETE;
|
||||
else if (strcmp(req_meth, "HEAD") == 0) flags = RGW_CORS_HEAD;
|
||||
|
||||
if ((rule->get_allowed_methods() & flags) == flags) {
|
||||
if (rule->get_allowed_methods() & flags) {
|
||||
dout(10) << "Method " << req_meth << " is supported" << dendl;
|
||||
} else {
|
||||
dout(5) << "Method " << req_meth << " is not supported" << dendl;
|
||||
|
Loading…
Reference in New Issue
Block a user