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

Remove support for well-known protocols - fixes #37 #38

Merged
merged 1 commit into from Sep 23, 2019

Conversation

silverwind
Copy link
Collaborator

@silverwind silverwind commented Aug 28, 2019

Now, only http: and https: are supported for port-less URLs. Also improved the redirect check.

The removal of non-http protocols is because of this oddity in the URL standard:

> new URL("ftp://google.com:21").port
''
> new URL("https://google.com:21").port
'21'

This should be released as semver-major.

Fixes #37

@silverwind
Copy link
Collaborator Author

Pushed some more changes. Notably, default port is now 443.

@sindresorhus sindresorhus merged commit 288fc10 into master Sep 23, 2019
@sindresorhus sindresorhus deleted the remove-wellknown branch September 23, 2019 06:18
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.

is-reachable is huge since v2.2.0
2 participants