fix: enhance req.acceptsCharsets method - #6088
Conversation
|
Hey @Abdel-Monaam-Aouini! Thanks for this PR... can you explain the motivation for this change? |
The motivation for this change is to improve developer experience and make the Key motivations:
The changes don't break existing functionality but make the API more developer-friendly and better documented. This helps reduce potential confusion and makes the feature more accessible to new Express.js users. |
wesleytodd
left a comment
There was a problem hiding this comment.
Looking good. I think both the docs and the modernization in this are worth doing in this case.
|
The failing test is due to #6969 |
Refactor acceptsCharsets to support flexible charset input formats
This change improves the acceptsCharsets method to handle multiple input formats:
Updates include:
The changes make the API more flexible while maintaining backwards compatibility.