mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 16:05:47 +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) {
|
switch (dlclient) {
|
||||||
case 'qbit':
|
case 'qbit':
|
||||||
client = new QBittorrent({
|
client = new QBittorrent({
|
||||||
baseUrl: new URL(url).origin,
|
baseUrl: new URL(url).href,
|
||||||
username,
|
username,
|
||||||
password,
|
password,
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'deluge':
|
case 'deluge':
|
||||||
client = new Deluge({
|
client = new Deluge({
|
||||||
baseUrl: new URL(url).origin,
|
baseUrl: new URL(url).href,
|
||||||
password,
|
password,
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user