From 0166a30e3cb837d6be7860d37676ca7719278cae Mon Sep 17 00:00:00 2001 From: Preston Maness Date: Sun, 11 Jun 2023 23:47:28 -0500 Subject: [PATCH] Make scheme of the proxy configurable (Aids in local development where TLS certs are unavailable) --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index b093d9e..b265b3a 100644 --- a/src/utils.js +++ b/src/utils.js @@ -42,7 +42,7 @@ const generateProxyURL = (type, data, opts) => { queryStrings.push(`${key}=${encodeURIComponent(data[key])}`) }) - return `https://${opts.proxy.hostname}/api/2/get/${type}?${queryStrings.join( + return `${opts.proxy.scheme}://${opts.proxy.hostname}/api/2/get/${type}?${queryStrings.join( '&' )}` }