mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 07:55:52 +01:00
Change urls for href instead of origin
This commit is contained in:
@@ -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