aboutsummaryrefslogtreecommitdiffstats
path: root/deckit/modules
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-16 17:33:41 +0100
committerDanilo M. <danix@danix.xyz>2026-11-16 17:33:41 +0100
commitaaf950fa5461d7879ca28371f1c788f4daaaaed2 (patch)
tree7c97b5e31a8b3767a6994ed71dda5aa46b012279 /deckit/modules
parent26b2f3255dea0ee13c562ffcfd8d641fd976d5f8 (diff)
downloaddeck-it-aaf950fa5461d7879ca28371f1c788f4daaaaed2.tar.gz
deck-it-aaf950fa5461d7879ca28371f1c788f4daaaaed2.zip
fix(xbox): name the client, so xccs answers
Diffstat (limited to 'deckit/modules')
-rw-r--r--deckit/modules/xbox.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deckit/modules/xbox.py b/deckit/modules/xbox.py
index c8fb581..16cd389 100644
--- a/deckit/modules/xbox.py
+++ b/deckit/modules/xbox.py
@@ -94,7 +94,7 @@ class SignedOut(Exception):
def _http(url, data=None, headers=None, timeout=10):
"""A JSON answer. data: a dict or list goes as JSON, a str as a form."""
- h = {"Accept": "application/json", **(headers or {})}
+ h = {"Accept": "application/json", "User-Agent": "deck-it", **(headers or {})}
body = None
if isinstance(data, dict | list):
body, h["Content-Type"] = json.dumps(data).encode(), "application/json"