compat: support more kosync server implementations, closes #1862 (#1929)

This commit is contained in:
Huang Xin
2025-08-30 10:54:31 +08:00
committed by GitHub
parent 856ed4d3b3
commit 6003eeadba
2 changed files with 7 additions and 5 deletions
@@ -53,6 +53,7 @@ export class KOSyncClient {
method,
headers: {
accept: 'application/vnd.koreader.v1+json',
...(method === 'GET' ? {} : { 'Content-Type': 'application/json' }),
...Object.fromEntries(headers.entries()),
},
body,