Correct unknown upload reconciliation and allow longer upload response

This commit is contained in:
Pigway
2026-10-06 22:18:56 +08:00
parent 557e21ca58
commit 78ff5a6b00
3 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class SafeTransport:
"Content-Type": "application/json",
},
json=None if binary else payload or {},
timeout=(5, 30),
timeout=(5, 120 if endpoint == "/upload" else 30),
allow_redirects=False,
)
except requests.RequestException: