fix(upload): identify image host requests
This commit is contained in:
1 parent
d6d90f6753
commit
fd4e7b395f
4 files changed
+18
-4
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user