fix(res.send): add Content-Length header only if Transfer-Encoding is not present (#4893)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
* fix(respond): add Content-Length header only if Transfer-Encoding is not present * fix(response): used get('Transfer-Encoding') * test(res.send): covered Transfer-Encoding and Content-Length headers logic * chore(response): removed comment * chore(res.redirect): revert changes to focus on res.send * test(res.send): added tests for all transfer encodings * docs: update History.md to include bug fix for HTTP header conflict in res.send() ---------
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>
Diff stats
3 files+36 added−3 removed
- tests:+25 added−0 removed
- other:+11 added−3 removed