Commit 226c6d35 authored by Matthew Gall's avatar Matthew Gall

Modified scope of endpoint variable to fix a bug

parent 82a8bc37
......@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment