fix PDA transport replacement and evidence auth

This commit is contained in:
2026-09-23 18:40:32 +08:00
parent e58f087e97
commit d34bf88b7f
3 changed files with 2 additions and 7 deletions
+1
View File
@@ -615,6 +615,7 @@ export class AcceptanceRun {
}
async requestMultipart(method, path, file, token = this.token, extraHeaders = {}) {
if (this.pdaToken && /\/pda-loading\/tasks\/\d+/.test(String(path))) token = this.pdaToken
const form = file instanceof FormData ? file : new FormData()
if (!(file instanceof FormData)) {
if (!file || file.content === undefined) throw new TypeError('multipart file requires content')