Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngrok: auto-rewrite the http host header #123

Merged
merged 4 commits into from
Nov 1, 2023
Merged

Conversation

jrobsonchase
Copy link
Contributor

This is now implemented by our request header middleware upstream, but this
adds some convenience and docs to it.

Users can call http_builder.host_header_rewrite(true); to have it set
automatically on listen_and_forward calls, and it also points out the
.request_header(...) approach to setting specific values.

Also canonicalizes (lowercases, really) header keys to make sure we aren't
sending multiple values for the same differently-cased "Host" header.

@jrobsonchase
Copy link
Contributor Author

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@jrobsonchase jrobsonchase force-pushed the josh/auto-rewrite-host branch from 5a5f27e to e3fa602 Compare October 31, 2023 16:22
@jrobsonchase jrobsonchase merged commit 5e0c1a4 into main Nov 1, 2023
11 checks passed
@jrobsonchase jrobsonchase deleted the josh/auto-rewrite-host branch November 1, 2023 17:30
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