mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 14:39:28 -07:00
Make scheme of the proxy configurable
(Aids in local development where TLS certs are unavailable)
This commit is contained in:
parent
f7c90edd7d
commit
0166a30e3c
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
'&'
|
||||
)}`
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue