fix(upload): identify image host requests

This commit is contained in:
nyan404 committed 2026-08-21 14:48:04 +03:00
1 parent d6d90f6753
commit fd4e7b395f
4 files changed
+18 -4

No files matched your search

+5 -1
View File
@@ -97,7 +97,11 @@ class ImageHostClient:
f"{self.api_url}{path}",
data=json.dumps(payload).encode("utf-8"),
method="POST",
headers={"Content-Type": "application/json", "Accept": "application/json"},
headers={
"Content-Type": "application/json",
"Accept": "application/json",
"User-Agent": "BelkiCalculator/1.0 (+https://cat.nyan404.ru/belki)",
},
)
try:
with urlopen(request, timeout=self.timeout) as response: