Change urls for href instead of origin

This commit is contained in:
VinnyVynce
2022-06-06 07:07:35 -04:00
committed by GitHub
parent 39674fc769
commit 5b16589360

View File

@@ -17,14 +17,14 @@ async function Post(req: NextApiRequest, res: NextApiResponse) {
switch (dlclient) {
case 'qbit':
client = new QBittorrent({
baseUrl: new URL(url).origin,
baseUrl: new URL(url).href,
username,
password,
});
break;
case 'deluge':
client = new Deluge({
baseUrl: new URL(url).origin,
baseUrl: new URL(url).href,
password,
});
break;