forked from GitHub/cloudflare-docker-proxy
Fix headers variable initialization (#71)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user