Skip to content

Commit 2ef6cb3

Browse files
committed
refactor
1 parent 9d24bdf commit 2ef6cb3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/stac_auth_proxy/utils/lifespan.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ async def check_server_health(
2323
if isinstance(url, HttpUrl):
2424
url = str(url)
2525

26-
async with httpx.AsyncClient(timeout=timeout, follow_redirects=True) as client:
26+
async with httpx.AsyncClient(
27+
base_url=url, timeout=timeout, follow_redirects=True
28+
) as client:
2729
for attempt in range(max_retries):
2830
try:
29-
response = await client.get(url)
31+
response = await client.get("/")
3032
response.raise_for_status()
3133
logger.info(f"Upstream API {url!r} is healthy")
3234
return

0 commit comments

Comments
 (0)