Update RequestForgeryGood.js

This commit is contained in:
Matt Rothenberg
2022-12-02 14:02:54 +01:00
committed by GitHub
parent d3e06ee290
commit 2ae0c7e115

View File

@@ -1,10 +1,9 @@
import http from 'http';
import url from 'url';
var server = http.createServer(function(req, res) {
var target = url.parse(req.url, true).query.target;
const server = http.createServer(function(req, res) {
const target = new URL(req.url).searchParams.get("target");
var subdomain;
const subdomain;
if (target === 'EU') {
subdomain = "europe"
} else {