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( '&' )}` }