Change urls for href instead of origin
This commit is contained in:
1 parent
39674fc769
commit
5b16589360
1 file changed
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user