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

Allow host overrides in TOML configuration #48

Merged
merged 3 commits into from
Jul 19, 2021

Conversation

fgsch
Copy link
Member

@fgsch fgsch commented Jul 19, 2021

This adds a new field to the backend definition, override_host,
allowing to override the Host header that will be sent to the
backend.

Addresses #9.

@cratelyn cratelyn added the feature-ux Concerning ergonomics and ease-of-use label Jul 19, 2021
Copy link
Contributor

@cratelyn cratelyn left a comment

Choose a reason for hiding this comment

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

🙌 🥳 Woohoo! Thanks for taking this issue on @fgsch, this all looks wonderful! I have two very small nitpicks to address, one concerning a use import, and a one-line alteration to our new integration test.

Hopefully, this should all be addressable from the web UI, and we can get this landed soon!

cli/tests/upstream.rs Outdated Show resolved Hide resolved
cli/tests/upstream.rs Outdated Show resolved Hide resolved
lib/src/config/unit_tests.rs Show resolved Hide resolved
cli/tests/upstream.rs Outdated Show resolved Hide resolved
fgsch and others added 3 commits July 19, 2021 18:18
This adds a new field to the backend definition, override_host,
allowing to override the Host header that will be sent to the
backend.

Addresses fastly#9.
@fgsch
Copy link
Member Author

fgsch commented Jul 19, 2021

I've rebased this PR to fix the via_hyper() commit and drop the commit that was cherry-picked in #49.
Sorry, will be more careful next time to avoid rebasing it after it is been reviewed.

Copy link
Contributor

@cratelyn cratelyn left a comment

Choose a reason for hiding this comment

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

Wahoo! Thanks for implementing this @fgsch 🙂

@cratelyn cratelyn merged commit 32955bc into fastly:main Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-ux Concerning ergonomics and ease-of-use
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants