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

Propagate Host header from the original request #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dnachev
Copy link

@dnachev dnachev commented Jan 2, 2023

The current code sets the Host header (respectively :authority for HTTP/2) to the host name set by the -host parameter. This however breaks certain setups, which might expect the Host header to be retained.

In my particular case, I have tired-proxy in front of traefik which is used to configure different access rules depending on the Host used.

I expect the original code had some particular intention, but it's unclear what use cases it serves. Hopefully this PR helps other people figure out what's happening faster :)

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.

None yet

1 participant