url-normalize icon indicating copy to clipboard operation
url-normalize copied to clipboard

Wrong explicitly specified port normalization

Open KirillArtemenko opened this issue 2 years ago • 0 comments

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://"

KirillArtemenko avatar Oct 18 '21 12:10 KirillArtemenko