WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@kycheng
Copy link

@kycheng kycheng commented Dec 1, 2025

  • Updated urlParse to include port in the returned dictionary.
  • Enhanced urlJoin to construct the host from hostname and port, with support for IPv6 addresses.
  • Added test cases for IPv6 URLs in url_test.go.
  • Updated documentation to reflect changes in URL parsing and joining behavior.

- Updated `urlParse` to include port in the returned dictionary.
- Enhanced `urlJoin` to construct the host from hostname and port, with support for IPv6 addresses.
- Added test cases for IPv6 URLs in `url_test.go`.
- Updated documentation to reflect changes in URL parsing and joining behavior.

Signed-off-by: kychen <[email protected]>
@kycheng kycheng changed the title Add port handling to URL parsing and joining Add port handling to urlParse and urlJoin Dec 1, 2025
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