Thu Apr 17 08:43:26 2014hfd8723542 [...] gmail.com - Ticket created
Subject:
$uri->canonical() can give different results for the same URL
Date:
Thu, 17 Apr 2014 14:43:16 +0200
To:
bug-URI [...] rt.cpan.org
From:
Fred <hfd8723542 [...] gmail.com>
Hello,
$uri->canonical() can give different results for the same URL.
$ perl -MURI -E 'say $URI::VERSION'
1.60
$ perl -MURI -E '$u = URI->new("http://site.com?q=1"); say $u->canonical->as_string'
http://site.com?q=1
$ perl -MURI -E '$u = URI->new("http://site.com/?q=1"); say $u->canonical->as_string'
http://site.com/?q=1