]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: address CORS rule-matching review feedback
authorramin.najarbashi <ramin.najarbashi@gmail.com>
Sat, 6 Jun 2026 13:31:56 +0000 (17:01 +0330)
committerramin.najarbashi <ramin.najarbashi@gmail.com>
Mon, 22 Jun 2026 17:02:08 +0000 (20:32 +0330)
commiteb7ac94ab92ea1cf6807b8eddd0f0b3cc225f3fe
tree186c264e07aec4b63b67830b56286c4f05d33698
parentd905c1321bd439325200fe694f76e2805e89dee4
rgw: address CORS rule-matching review feedback

- matches_method: reject null/empty method; short-circuit RGW_CORS_ALL
- matches_preflight_headers: add logging for skip and disallowed headers
- generate_cors_headers: capture req_meth/req_hdrs in lambda
- remove unused validate_cors_rule_method/header helpers

Signed-off-by: ramin.najarbashi <ramin.najarbashi@gmail.com>
On branch fix/rgw-cors-aws-rule-matching
Changes to be committed:
modified:   src/rgw/rgw_cors.cc
modified:   src/rgw/rgw_op.cc

(cherry picked from commit 8b3f907f7c819b16f098142c9242d2abb6fa2829)
src/rgw/rgw_cors.cc
src/rgw/rgw_op.cc