Fixes add torrent files with no authentication using qbittorrent.
Description
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.
Types of changes
[ ] Breaking change (changes that break backward compatibility of public API or CLI - semver MAJOR)
[ ] New feature (non-breaking change which adds functionality - semver MINOR)
[x] Bug fix (non-breaking change which fixes an issue - semver PATCH)
Fixes add torrent files with no authentication using qbittorrent.
Description
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.
Types of changes