express
express copied to clipboard
test: add test for req.host with comma-separated X-Forwarded-Host
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