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

DecodedPort should not be the default value #30

Closed
dzcdzcdzcdzc opened this issue Oct 23, 2024 · 1 comment · Fixed by #31
Closed

DecodedPort should not be the default value #30

dzcdzcdzcdzc opened this issue Oct 23, 2024 · 1 comment · Fixed by #31
Labels
bug Something isn't working

Comments

@dzcdzcdzcdzc
Copy link

dzcdzcdzcdzc commented Oct 23, 2024

Hello!

version

github.com/nlnwa/whatwg-url v0.5.0

such code

u, _ := url.Parse("http://127.0.0.1:8080")
m, _ := u.Parse("/abc")
println(m.Port())
println(m.DecodedPort())
println(m.String())

outputs the result

8080
80
http://127.0.0.1:8080/abc

I got a default value

@maeb maeb added the bug Something isn't working label Jan 13, 2025
@maeb
Copy link
Member

maeb commented Jan 13, 2025

Thank you for the issue @dzcdzcdzcdzc! Will create a new release as soon as the fix is merged.

@maeb maeb closed this as completed in #31 Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants