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: