fix: use let for subdomain assignment

This commit is contained in:
Matt Rothenberg
2022-12-02 14:07:39 +01:00
committed by GitHub
parent a453405365
commit c49e9e8503

View File

@@ -3,7 +3,7 @@ import http from 'http';
const server = http.createServer(function(req, res) {
const target = new URL(req.url).searchParams.get("target");
const subdomain;
let subdomain;
if (target === 'EU') {
subdomain = "europe"
} else {