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

net/url: url.Parse() dont check error #54689

Closed
michail-vestnik opened this issue Aug 26, 2022 · 1 comment
Closed

net/url: url.Parse() dont check error #54689

michail-vestnik opened this issue Aug 26, 2022 · 1 comment

Comments

@michail-vestnik
Copy link

Hi!

Go version tested: 1.18, 1.19

package main

import (
	"fmt"
	"net/url"
)

func main() {
	_, e := url.Parse("Hey Go, are you ok? :-)")
	if e != nil {
		fmt.Println("Yes! I,m check this error!")
	} else {
		fmt.Println("NO! I broken and kill your production, grrrrr")
	}
}

Thanks!

@seankhliao
Copy link
Member

That is a valid relative path, which Parse accepts

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2022
@golang golang locked and limited conversation to collaborators Aug 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants