glenscott / url-normalizer

Syntax based normalization of URI's
MIT License
100 stars 16 forks source link

Not adding trailing slash #5

Closed ghost closed 12 years ago

ghost commented 12 years ago

The add trailing slash functionality does not seem to work.

$un = new URLNormalizer();
$un->setUrl('http://example.com');
echo $un->normalize();

Expected output: http://example.com/ Actual output: http://example.com

glenscott commented 12 years ago

Hi,

Thanks for taking the time to report this issue. I've just pushed a new version of the URLNormalizer class which fixes this bug. I've also added a new unit test (testTrailingSlashIsAdded) which confirms the expected behaviour that you've reported.

Regards,

Glen