fix(W3): remove incorrect 'Bearer' prefix in Authorization header

AList expects bare token (not 'Bearer <token>'). With 'Bearer' prefix,
all role/get calls returned non-data responses -> currentPaths degraded
to [] -> W3 kept re-applying same scopes every run (false toAdd) and
never detected expired scopes (false toRemove). This is the root cause
of W3 not showing hoe's expiry removal.
This commit is contained in:
2026-08-23 03:08:59 +08:00
parent 266a3442c8
commit 7f12804f47
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ async function ncGet(path) {
async function alistReq(method, path, body, token) {
return await this.helpers.httpRequest({
method, url: ALIST + path,
headers: token ? { Authorization: 'Bearer ' + token } : {},
headers: token ? { Authorization: token } : {},
body, json: true,
});
}