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

Fix host match with a port number #436

Merged
merged 1 commit into from
Nov 7, 2019
Merged

Fix host match with a port number #436

merged 1 commit into from
Nov 7, 2019

Conversation

jcmoraisjr
Copy link
Owner

Request processing are made using the base sample (host+path) and sometimes only the Host header is used. Some http clients add the port number in the header, giving something like domain.local:80 where only the domain.local part should be used to match ingress hostnames. This conversion is done using regsub() that matches and removes :[0-9]+/. The problem here is the trailing slash: it only exists in the base sample and doesn't exist if the host header is used.

Should be merged to v0.8

Request processing are made using the `base` sample (host+path) and sometimes only the Host header is used. Some http clients add the port number in the header, giving something like `domain.local:80` where only the `domain.local` part should be used to match ingress hostnames. This conversion is done using regsub() that matches and removes `:[0-9]+/`. The problem here is the trailing slash: it only exists in the `base` sample and doesn't exist if the host header is used.

Should be merged to v0.8
@jcmoraisjr jcmoraisjr merged commit 4f68b3c into master Nov 7, 2019
@jcmoraisjr jcmoraisjr deleted the jm-host-match branch November 7, 2019 01:08
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.

1 participant