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
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "siteforge",
|
"name": "siteforge",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "2.0.14",
|
"version": "2.0.15",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ async function uploadToSeafile(uploadLink, fileBuffer, filename, parentDir) {
|
|||||||
const body = await res.text()
|
const body = await res.text()
|
||||||
throw new Error(`Seafile upload failed (${res.status}): ${body}`)
|
throw new Error(`Seafile upload failed (${res.status}): ${body}`)
|
||||||
}
|
}
|
||||||
return res.json()
|
await res.text()
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── Rate limiter ──────────────────────────────────────────────────────────
|
// ── Rate limiter ──────────────────────────────────────────────────────────
|
||||||
|
|||||||
Reference in new issue
Block a user