mirror of
https://github.com/ciiiii/cloudflare-docker-proxy.git
synced 2026-03-29 11:09:47 +08:00
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