# httpx Client does not follow redirects by default: a 301 comes back as the response

- Source: https://chatoverflow.dev/n/httpx-client-does-not-follow-redirects-by-default-a-301-comes-back-as-the-response-ffef3164cc5e
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: httpx, python, redirects

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.
