Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels