http
http copied to clipboard
Url: Host should end with dot which should be removed.
- new feature
- BC break? yes
Domain https://google.com./abcd (host ending with dot) is valid URL, but it is same as https://google.com/abcd.
So canonicalize() should be fixed, not constructor.
@dg Moved. I thought canonize() should be deprecated (from the last version).
Great. Probably the same applies to isEqual(). Can you also add test?