There was an error while loading. Please reload this page.
1 parent d5a1b80 commit 302fc42Copy full SHA for 302fc42
1 file changed
src/server/utils/qbt.ts
@@ -47,7 +47,7 @@ export async function loginToQbt(instance: QbtInstance, timeout?: number): Promi
47
}
48
49
const text = await res.text()
50
- if (text !== 'Ok.') {
+ if (res.status !== 204 && text.trim() !== 'Ok.') {
51
return { success: false, error: 'Invalid credentials', status: 401 }
52
53
@@ -88,7 +88,7 @@ export async function testQbtConnection(
88
89
90
const loginText = await loginRes.text()
91
- if (loginText !== 'Ok.') {
+ if (loginRes.status !== 204 && loginText.trim() !== 'Ok.') {
92
93
94
0 commit comments