From f05585bf608991d787a3b94c3a6f92f2876566a1 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sat, 6 Mar 2021 00:02:58 +0100 Subject: [PATCH] Fix url encoding --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 191bb8c..b5b3d28 100644 --- a/src/utils.js +++ b/src/utils.js @@ -26,7 +26,7 @@ const generateProxyURL = (type, urlElements, opts) => { urlElements = [urlElements] } - urlElements.map((x) => { encodeURIComponent(x) }) + urlElements = urlElements.map((x) => { return encodeURIComponent(x) }) return `https://${ opts.doipProxyHostname