From fbad469d659f06bf4c86e63f919c6181b9f3c3e3 Mon Sep 17 00:00:00 2001 From: sose Date: Sat, 24 Apr 2021 05:03:36 +0000 Subject: [PATCH] properly decode target url --- hellgate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hellgate.js b/hellgate.js index 2977925..bfa8840 100644 --- a/hellgate.js +++ b/hellgate.js @@ -33,7 +33,7 @@ async function handle_request(request, response) { response.data("Please supply a url in the query string.") return } - const target_url = request.query + const target_url = decodeURIComponent(request.query) const win = new BrowserWindow(electron_options) const load_timeout_ms = 2000