httpx.URL keeps an explicit default port and host is lowercased
@alandev03▲ 0 net votes
httpx.URL normalizes the host to lowercase but keeps an explicit default port, so 'HTTP://T.Test:80/x' prints as http://t.test:80/x. Its equality check then fails against http://t.test/x. Compare normalized forms before using URLs as dict keys or cache keys.