Skip to content

Http2 X-forwarded headers#72

Merged
dajinchu merged 1 commit intomasterfrom
dc/http2
Feb 16, 2026
Merged

Http2 X-forwarded headers#72
dajinchu merged 1 commit intomasterfrom
dc/http2

Conversation

@dajinchu
Copy link
Collaborator

@dajinchu dajinchu commented Feb 16, 2026

support http2

if (!(request.raw instanceof Http2ServerRequest)) {
const fwd = forwarded(request.raw).reverse();
headers["X-Forwarded-For"] = fwd.join(", ");
headers["X-Forwarded-Host"] = host.host;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setting x-forwarded-host/protocol is required for rails to work properly

@dajinchu dajinchu changed the title dc/http2 Http2 X-forwarded headers Feb 16, 2026
@dajinchu dajinchu merged commit 4e24588 into master Feb 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants