purell icon indicating copy to clipboard operation
purell copied to clipboard

tiny Go library to normalize URLs

Results 5 purell issues
Sort by recently updated
recently updated
newest added

It seems like FlagRemoveUnnecessaryHostDots only removes extra leading and trailing dots in the hostname part of the URL. For instance a URL like "http://host..com" doesn't get the extra dots removed.

Any idea if the fix was merged to idna package? https://github.com/PuerkitoBio/purell/blob/master/purell.go#L166 Is this still relevant?

IDNA normalization is only performed in `NormalizeURLString`, but that function returns a `string`. If you need a `url.URL`, you must then parse the result of `NormalizeURLString`, which means you are...

[Issue 5684](https://github.com/golang/go/issues/5684) is now closed, so it might be time to revert [PR 9](https://github.com/PuerkitoBio/purell/pull/9).

This PR gets most tests to pass using `net/url.String()` for url escaping. The only failing tests are for `EncodeNecessaryEscapes` and `DecodeUnnecessaryEscapes`, which rely on implementation details of `net/url` and `urlesc`....