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

Add option to normalize custom protocols #179

Open
sindresorhus opened this issue Nov 4, 2022 · 1 comment
Open

Add option to normalize custom protocols #179

sindresorhus opened this issue Nov 4, 2022 · 1 comment

Comments

@sindresorhus
Copy link
Owner

The normalization steps assume HTTP behavior, so it would only work with protocols that are very similar to HTTP.

@Kilian
Copy link

Kilian commented Mar 22, 2023

In normalize-url@7, normalizing localhost:8000 would result in https://localhost:8000 but because of #178, localhost: is now seen as a protocol. This makes sense, but it's still a bit of an unwanted behavior.

Not creating a new ticket because it's closely related to this, so I hope that the old behavior can be reinstated (with an option or otherwise) while adding a normalize custom protocols option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants