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 9d24bdf commit 2ef6cb3Copy full SHA for 2ef6cb3
src/stac_auth_proxy/utils/lifespan.py
@@ -23,10 +23,12 @@ async def check_server_health(
23
if isinstance(url, HttpUrl):
24
url = str(url)
25
26
- async with httpx.AsyncClient(timeout=timeout, follow_redirects=True) as client:
+ async with httpx.AsyncClient(
27
+ base_url=url, timeout=timeout, follow_redirects=True
28
+ ) as client:
29
for attempt in range(max_retries):
30
try:
- response = await client.get(url)
31
+ response = await client.get("/")
32
response.raise_for_status()
33
logger.info(f"Upstream API {url!r} is healthy")
34
return
0 commit comments