Modified scope of endpoint variable to fix a bug
Showing
... | ... | @@ -50,7 +50,7 @@ async function handleRequest(request) { |
config = JSON.parse(config) | ||
try { | ||
let endpoint = config[product]['endpoint'] | ||
var endpoint = config[product]['endpoint'] | ||
} | ||
catch (e) { | ||
return new Response(`You tried to access a mirror we don't yet maintain. Please send your request to [email protected]`, { | ||
... | ... | @@ -59,7 +59,7 @@ async function handleRequest(request) { |
} | ||
}) | ||
} | ||
return new Response(endpoint, { | ||
headers: { | ||
'Content-Type': 'text/plain' | ||
... | ... |
Please register or sign in to comment