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

Added the flexibility to not reverse the domain labels during normalization #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

plaurina
Copy link

For people using URL.getNormalizedUrl() their functionality will not change, but I added a method signature that allows a boolean to this that will not reverse the domain labels.

-Pete

@plaurina
Copy link
Author

Well, it no longer order the domain parts, which was the intent, but it does order the parameters.
I could see renaming the method, but I was also trying to be the least invasive as I could.

Also, one thing I'm likely to add is something the java.net.URI.Normalize() method does. It normalizes the path on the URI as well, removing any . or .. paths appropriately. ie. http://example.com/test/../ is equivalent to http://example.com

-Pete

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.

2 participants