express icon indicating copy to clipboard operation
express copied to clipboard

test: add test for req.host with comma-separated X-Forwarded-Host

Open Ayoub-Mabrouk opened this issue 2 months ago • 0 comments

Add test to verify that req.host correctly handles comma-separated values in X-Forwarded-Host header by using only the first value. This ensures the behavior matches req.hostname and properly handles edge cases when proxies send multiple host values

Ayoub-Mabrouk avatar Nov 10 '25 20:11 Ayoub-Mabrouk