We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d475878 commit 0e7ae79Copy full SHA for 0e7ae79
1 file changed
components/renku_data_services/repositories/utils.py
@@ -7,7 +7,7 @@ async def probe_repository(repository_url: str) -> bool:
7
"""Probe a repository to check if it is publicly available."""
8
async with httpx.AsyncClient() as client:
9
url = f"{repository_url}/info/refs?service=git-upload-pack"
10
- res = await client.get(url=url)
+ res = await client.get(url=url, follow_redirects=True)
11
if res.status_code != 200:
12
return False
13
return bool(res.headers.get("Content-Type") == "application/x-git-upload-pack-advertisement")
0 commit comments