envoyproxy / envoy

Cloud-native high-performance edge/middle/service proxy
https://www.envoyproxy.io
Apache License 2.0
25.07k stars 4.82k forks source link

cors: refactor loop to if #37257

Open adisuissa opened 2 days ago

adisuissa commented 2 days ago

Commit Message: cors: refactor loop to if Additional Description: PR #36079 updated the policies of the CORS filter to be a vector of references that must exist. This followup changes the original for-loop to an if statement that returns the first element, if exists.

Risk Level: low Testing: N/A Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A

repokitteh-read-only[bot] commented 2 days ago

As a reminder, PRs marked as draft will not be automatically assigned reviewers, or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

:cat: Caused by: https://github.com/envoyproxy/envoy/pull/37257 was opened by adisuissa. see: [more](https://github.com/envoyproxy/envoy/pull/37257), [trace](https://prod.repokitteh.app/traces/ui/envoyproxy/envoy/31d84c10-a6f2-11ef-9611-b5e6a9b4ebe8).
soulxu commented 2 days ago

/assign @wbpcode