net/url: no default port information after parse URL without explicit port #51329
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I tried to convert a string(with no port, 80) address into a URL form with (u *URL) Parse(ref string) (*URL, error)
What did you expect to see?
URL struct that has port as 80
What did you see instead?
"" (empty string)
(u *URL) Parse(ref string) (*URL, error) If there is no port information in the method, I would like to have port 80 by default.
The text was updated successfully, but these errors were encountered: