-
Notifications
You must be signed in to change notification settings - Fork 6
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
is_valid_url? #64
Comments
Why is BTW: Agree that it's |
Asking because in See |
I can't think of any other reason other than to enforce strictness. |
My one euro input. Suppose you have an API and an endpoint that takes an URL. If you don't put a constraint on the scheme, are you assured of have the redirection? |
An example. You want to download a file and you have an endpoint that accepts URLs. If you don't specify the scheme, how do you know if it is Another example: try in the browser: fetch("google.com").then(console.log)
// and compare to
fetch("http://google.com").then(console.log) |
Good point. 💭 |
The postman brings a letter to the correct address and finds that the house has been demolished. Yes 😏 |
Who was (!) the president? |
I used this a few times:
The text was updated successfully, but these errors were encountered: