Fix headers variable initialization (#71)

This commit is contained in:
简简aw
2024-10-08 11:30:07 +08:00
committed by GitHub
parent 696009dd69
commit 24d7c9fc90

View File

@@ -136,7 +136,7 @@ async function fetchToken(wwwAuthenticate, scope, authorization) {
if (scope) {
url.searchParams.set("scope", scope);
}
headers = new Headers();
const headers = new Headers();
if (authorization) {
headers.set("Authorization", authorization);
}