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

If there is a port number after hostname in the url, the request header 'Host' missing that port number. #12

Open
sinylei opened this issue Nov 10, 2022 · 0 comments

Comments

@sinylei
Copy link

sinylei commented Nov 10, 2022

If there is a port number after hostname in the url, the request header 'Host' missing that port number.
This will lead the response redirect to wrong url.

for example, I want to access http://192.168.1.20:55000, with livehosts map (192.168.1.20 to myhost.com). The request header 'Host' contains only myhost.com, not myhost.com:55000, when my server response to redirect next url, only http://myhost.com/blablabla, which http://myhost.com:55000/blablabla is wanted.

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

No branches or pull requests

1 participant