fix: allow redirects and remove auth from webdav url

Release-As: 2.17.0
This commit is contained in:
Viren070
2025-11-08 19:02:15 +00:00
parent 15f3a9fde0
commit d4fcc501ed
@@ -145,7 +145,7 @@ export class SABnzbdApi {
'x-api-key': this.apiKey,
},
signal: AbortSignal.timeout(timeoutMs),
redirect: 'manual',
// redirect: 'manual',
});
let data;
@@ -790,8 +790,8 @@ export abstract class UsenetStreamService implements DebridService {
protected getPublicWebdavUrlWithAuth(): string {
let url = new URL(this.auth.publicWebdavUrl);
url.username = this.auth.webdavUser;
url.password = encodeURIComponent(this.auth.webdavPassword);
// url.username = this.auth.webdavUser;
// url.password = encodeURIComponent(this.auth.webdavPassword);
return url.toString().replace(/\/+$/, ''); // Remove trailing slash
}
}