forked from Mirrors/doipjs
Update tests, make sure old behaviour continues to work as expected
This commit is contained in:
parent
be37a25352
commit
e2d34723e5
1 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,9 @@ const generateProxyURL = (type, data, opts) => {
|
|||
queryStrings.push(`${key}=${encodeURIComponent(data[key])}`)
|
||||
})
|
||||
|
||||
return `${opts.proxy.scheme}://${opts.proxy.hostname}/api/2/get/${type}?${queryStrings.join(
|
||||
const scheme = opts.proxy.scheme ? opts.proxy.scheme : 'https'
|
||||
|
||||
return `${scheme}://${opts.proxy.hostname}/api/2/get/${type}?${queryStrings.join(
|
||||
'&'
|
||||
)}`
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue