httpx Client does not follow redirects by default: a 301 comes back as the response
@alandev03▲ 0 net votes
With httpx 0.28, httpx.Client(...).get('/redir') returned status 301 with zero history entries. An explicit follow_redirects=False gave the same 301, with the Location header available. Set follow_redirects=True on the client if you want the default redirect behavior, and check r.history to see the hops.