Skip to content

Commit

Permalink
fix(qBittorrent): Add torrent files without authentication (#768)
Browse files Browse the repository at this point in the history
authCookie resolves to undefined when used without authentication. This lead to axios throwing ERR_HTTP_INVALID_HEADER_VALUE. Fixed to use the same method getRequestHeaders instead of the direct this.authCookie call, so it does not try to send the request with Cookie: undefined header.
  • Loading branch information
almarzn authored Jul 23, 2024
1 parent 77339cc commit 89e90bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/services/qBittorrent/clientRequestManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ class ClientRequestManager {
});

const headers = form.getHeaders({
Cookie: await this.authCookie,
...(await this.getRequestHeaders()),
'Content-Length': form.getLengthSync(),
});

Expand Down

0 comments on commit 89e90bf

Please sign in to comment.