Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimize exceptions thrown from BodyKeySanitizer #8313

Merged
merged 2 commits into from
May 28, 2024

Conversation

scbedd
Copy link
Member

@scbedd scbedd commented May 21, 2024

So many exceptions is quite costly. No reason to be throwing them when we can very simply check for json in the Content-Type before attempting to parse prior to applying the bodykeysanitizer.

@scbedd scbedd self-assigned this May 21, 2024
@scbedd scbedd requested review from mikeharder and benbp as code owners May 21, 2024 19:39
@scbedd scbedd merged commit 71f09fa into Azure:main May 28, 2024
12 checks passed
@scbedd scbedd mentioned this pull request Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants