Fix Seafile upload response parsed as JSON; v2.0.15
Publish Container / docker (push) Successful in 14m18s
Publish Container / docker (push) Successful in 14m18s
Seafile seafhttp returns a plain file ID string, not JSON. Replaced res.json() with res.text() — the return value was unused anyway. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
26a51f9089
commit
51543396e3
2 files changed
+2
-2
No files matched your search
@@ -132,7 +132,7 @@ async function uploadToSeafile(uploadLink, fileBuffer, filename, parentDir) {
|
||||
const body = await res.text()
|
||||
throw new Error(`Seafile upload failed (${res.status}): ${body}`)
|
||||
}
|
||||
return res.json()
|
||||
await res.text()
|
||||
}
|
||||
|
||||
// ── Rate limiter ──────────────────────────────────────────────────────────
|
||||
|
||||
Reference in new issue
Block a user