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

Leading Zeros in Port Numbers #69

Open
gflohr opened this issue Jan 13, 2020 · 0 comments
Open

Leading Zeros in Port Numbers #69

gflohr opened this issue Jan 13, 2020 · 0 comments

Comments

@gflohr
Copy link

gflohr commented Jan 13, 2020

Gratuitous leading zeros in port numbers should be stripped off. But the behavior of URI version 1.76 is:

$ perl -MURI -e "CORE::say URI->new('http://xyz:08080')->canonical->port"
08080

It already works as expected though for default ports:

$ perl -MURI -e "CORE::say URI->new('http://xyz:080')->canonical->port"
80
$ perl -MURI -e "CORE::say URI->new('https://xyz:0443')->canonical->port"
443
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