-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix(core): Gracefully handle invalid baggage entries #16257
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
Conversation
} catch { | ||
// We ignore errors here, e.g. if the value cannot be URL decoded. | ||
// This will then be skipped in the next step | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
q: Do we maybe want to add a debug log in case of discarded entries?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking about this, but this increases bundle size, not sure if worth it? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, alright then probably not worth the tradeoff
size-limit report 📦
|
Fixes #16251