Fix protocol for proxy URLs

This commit is contained in:
Yarmo Mackenbach 2021-04-26 12:11:45 +02:00
parent e13bd4e9f5
commit da59262c45
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -41,7 +41,7 @@ const generateProxyURL = (type, data, opts) => {
queryStrings.push(`${key}=${encodeURIComponent(data[key])}`) queryStrings.push(`${key}=${encodeURIComponent(data[key])}`)
}) })
return `http://${opts.proxy.hostname}/api/2/get/${type}?${queryStrings.join( return `https://${opts.proxy.hostname}/api/2/get/${type}?${queryStrings.join(
'&' '&'
)}` )}`
} }