Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Ayoub-Mabrouk wants to merge1 commit intoexpressjs:master
base:master
Choose a base branch
Loading
fromAyoub-Mabrouk:test/add-req-host-comma-separated-test

Conversation

@Ayoub-Mabrouk
Copy link
Contributor

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

Add test to verify that req.host correctly handles comma-separatedvalues in X-Forwarded-Host header by using only the first value.This ensures the behavior matches req.hostname and properly handlesedge cases when proxies send multiple host values.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@Ayoub-Mabrouk

[8]ページ先頭

©2009-2025 Movatter.jp