2 ms·
> The dirty secret of URLs is that no one can quite agree on which ones are valid or how they should be canonicalized. Fun story. An engineer was working to mi
by kccqzy 7y ago
> The dirty secret of URLs is that no one can quite agree on which ones are valid or how they should be canonicalized.
Fun story. An engineer was working to migrate an old system from Python 2 to 3 before the Python 2 EOL deadline. The engineer decided to use the str type to represent URLs. Chaos ensued when suddenly non-UTF-8 URLs don't work any more. Turns out back when that system was designed, people were directly URL-encoding binary data into URLs.