feat: do not modify the Content-Type twice when sending strings (#6991)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
* fix: improve content-type handling in res.send method * fix: ensure content-type is a string before setting charset in res.send * fix: refactor content-type handling in res.send to use const and improve clarity * Apply suggestion from @bjohansebas * docs: update History.md
authored by Sebastian Beltran · committed by GitHub · parent 5a4568a · Browse files · 2 files+11 added−14 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+11 added−14 removed
- other:+11 added−14 removed