fix: send curl-like user agent to Gitea API
iperf3 static musl build / build-and-release (push) Successful in 19s
iperf3 static musl build / build-and-release (push) Successful in 19s
This commit is contained in:
@@ -13,6 +13,7 @@ def api_request(method: str, url: str, token: str, data: bytes | None = None, he
|
||||
req_headers = {
|
||||
"Authorization": f"token {token}",
|
||||
"Accept": "application/json",
|
||||
"User-Agent": "curl/8.10.1",
|
||||
**(headers or {}),
|
||||
}
|
||||
req = urllib.request.Request(url, data=data, headers=req_headers, method=method)
|
||||
|
||||
Reference in New Issue
Block a user