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

Wrong explicitly specified port normalization #27

Open
KirillArtemenko opened this issue Oct 18, 2021 · 0 comments
Open

Wrong explicitly specified port normalization #27

KirillArtemenko opened this issue Oct 18, 2021 · 0 comments

Comments

@KirillArtemenko
Copy link

KirillArtemenko commented Oct 18, 2021

Hi, nice normalizer, but in main example we see:

from url_normalize import url_normalize
print(url_normalize('www.foo.com:80/foo'))
https://www.foo.com/foo

But, wait a minute...
HTTP port is 80
HTTPS port is 443
Normalize the explicitly specified ":80" port to "https://" is incorrect — it must be "http://"

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

No branches or pull requests

1 participant