2 ms·
One thing I find interesting is that it doesn't canonicalize the path portion at all. E.g.: scala> new URL("http://localhost/foo/bar/baz").equals(new URL(
by kelnos 7y ago
One thing I find interesting is that it doesn't canonicalize the path portion at all. E.g.:
scala> new URL("http://localhost/foo/bar/baz").equals(new URL("http://localhost/foo/../foo/bar/baz"))
res0: Boolean = false
It's just funny to me that they went to the effort to do a full network request to see if the hostnames resolve to the same IP, but didn't bother to normalize paths.
- boring_twenties 7y agoWow, so it's even stupider than we thought. Impressive.