-
Notifications
You must be signed in to change notification settings - Fork 284
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
Normalization capability for URL #2627
Conversation
inet/vibe/inet/url.d
Outdated
|
||
Params: | ||
isDirectory = Path of the URL represents a directory, a trailing | ||
slash is added when true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"a trailing slash is added when true"
Two things:
- "if one is not already present, a trailing slash will be appended when
true
" - What happens if this is false but there is a trailing slash ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing slash is never removed nor added when this is false
(except when path is empty it is added)
The dependent PR has been merged, this can be rebased. |
Depends on #2626 due to an unittest, dependency can be removed easily.
URL normalization without semantic changes capability is added
normalize
method is addednormalized
method is added