From ce345ad67fec258a9ce42e0c7b436f97f6c39944 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Wed, 13 Aug 2025 03:33:51 +0800 Subject: [PATCH] fix(koplugin): add expected 301 status code (#1791) --- apps/readest.koplugin/readest-sync-api.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/readest.koplugin/readest-sync-api.json b/apps/readest.koplugin/readest-sync-api.json index 0cf8b8d5..b768fd13 100644 --- a/apps/readest.koplugin/readest-sync-api.json +++ b/apps/readest.koplugin/readest-sync-api.json @@ -1,19 +1,19 @@ { - "base_url": "http://web.readest.com/api", + "base_url": "https://web.readest.com/api", "name": "readest-sync-api", "methods": { "pullChanges": { "path": "/sync", "method": "GET", "required_params": ["since", "type", "book"], - "expected_status": [200, 400, 401, 403] + "expected_status": [200, 400, 301, 401, 403] }, "pushChanges": { "path": "/sync", "method": "POST", "required_params": ["books", "notes", "configs"], "payload": ["books", "notes", "configs"], - "expected_status": [200, 201, 400, 401, 403] + "expected_status": [200, 201, 301, 400, 401, 403] } } }