From 9025865a9be2ae12a0933070e490d49d920f1e5e Mon Sep 17 00:00:00 2001 From: SRHTNIN Date: Fri, 9 Oct 2026 10:38:43 +0200 Subject: [PATCH] Release.py: send a User-Agent --- Packaging/Release.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Packaging/Release.py b/Packaging/Release.py index 8850375..4402fe1 100755 --- a/Packaging/Release.py +++ b/Packaging/Release.py @@ -51,6 +51,8 @@ def Token(Host: str) -> str: def Api(Method: str, Url: str, TokenValue: str, Body: bytes | None = None, ContentType: str = "application/json"): Request = urllib.request.Request(Url, data=Body, method=Method, headers={ "Authorization": f"token {TokenValue}", "Content-Type": ContentType, "Accept": "application/json", + # Cloudflare's bot check rejects Python's default User-Agent (error 1010). + "User-Agent": "SaraSuite-Release (git/2)", }) try: with urllib.request.urlopen(Request, timeout=300) as Response: