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 matching priority for host:port tuples #675

Merged
merged 1 commit into from
Jul 16, 2019
Merged

Conversation

pschultz
Copy link
Member

e566aaa reversed DNS names since they have
their most significant part at the front. Unfortunately it didn't
consider cases where the name is followed by a :port, making names
without port always take precedence over names with a port.

This patch changes the reverse function to ignores such port suffixes.

Closes #656

e566aaa reversed DNS names since they have
their most significant part at the front. Unfortunately it didn't
consider cases where the name is followed by a :port, making names
without port always take precedence over names with a port.

This patch changes the reverse function to ignores such port suffixes.

Signed-off-by: Peter Schultz <peter.schultz@classmarkets.com>
@pschultz pschultz requested a review from aaronhurt July 16, 2019 11:34
@aaronhurt
Copy link
Member

Good catch. LGTM. Thank you!

@aaronhurt aaronhurt merged commit 8494d3f into master Jul 16, 2019
@magiconair magiconair added this to the 1.5.12 milestone Oct 11, 2019
@aaronhurt aaronhurt deleted the fix-match-prio-656 branch January 23, 2020 15:18
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.

Clarify documentation HTTP Redirects
3 participants