Closed vdusek closed 9 months ago
I discovered that HTTPX defaults to follow_redirects=False.
follow_redirects=False
For instance, if a user specifies https://www.apify.com/ as a starting URL, the resulting output will be as follows:
https://www.apify.com/
{ "url": "https://www.apify.com/", "title": "301 Moved Permanently" }
This behavior might not be optimal. In most cases, you would want to follow 301 (or any 3xx) redirections.
Tests are failing, let's merge https://github.com/apify/actor-templates/pull/248 at first.
I discovered that HTTPX defaults to
follow_redirects=False
.For instance, if a user specifies
https://www.apify.com/
as a starting URL, the resulting output will be as follows:This behavior might not be optimal. In most cases, you would want to follow 301 (or any 3xx) redirections.