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

Normalization capability for URL #2627

Merged
merged 1 commit into from
Nov 5, 2021
Merged

Normalization capability for URL #2627

merged 1 commit into from
Nov 5, 2021

Conversation

mkykadir
Copy link
Contributor

Depends on #2626 due to an unittest, dependency can be removed easily.

URL normalization without semantic changes capability is added

  • normalize method is added
  • normalized method is added

inet/vibe/inet/url.d Outdated Show resolved Hide resolved
inet/vibe/inet/url.d Outdated Show resolved Hide resolved
inet/vibe/inet/url.d Outdated Show resolved Hide resolved

Params:
isDirectory = Path of the URL represents a directory, a trailing
slash is added when true
Copy link
Contributor

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 ?

Copy link
Contributor Author

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)

inet/vibe/inet/url.d Show resolved Hide resolved
inet/vibe/inet/url.d Show resolved Hide resolved
inet/vibe/inet/url.d Outdated Show resolved Hide resolved
inet/vibe/inet/url.d Outdated Show resolved Hide resolved
@Geod24
Copy link
Contributor

Geod24 commented Nov 5, 2021

The dependent PR has been merged, this can be rebased.

inet/vibe/inet/url.d Outdated Show resolved Hide resolved
inet/vibe/inet/url.d Outdated Show resolved Hide resolved
@Geod24 Geod24 merged commit 9c47d62 into vibe-d:master Nov 5, 2021
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