SIGN IN SIGN UP

fix(res.send): add Content-Length header only if Transfer-Encoding is not present (#4893)

* 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()

---------

Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>
Y
Yury Shkoda committed
18e5985b8a9d5e8423db0a9121f22bdaecd5b120
Parent: 59e205a
Committed by GitHub <noreply@github.com> on 6/16/2026, 3:06:31 AM