We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df3ae0b commit 79b742fCopy full SHA for 79b742f
apps/py/ch10_async/ascrape.py
@@ -21,7 +21,7 @@ async def get_html(n: int) -> str:
21
22
# The "async with" syntax ensures that all active connections are closed on exit.
23
async with httpx.AsyncClient() as client:
24
- resp = await client.get(url)
+ resp = await client.get(url, follow_redirects=True)
25
resp.raise_for_status()
26
27
return resp.text
0 commit comments