jesec / flood

A modern web UI for various torrent clients with a Node.js backend and React frontend.
https://flood.js.org
GNU General Public License v3.0
2.24k stars 135 forks source link

fix(qBittorrent): Add torrent files without authentication #768

Closed almarzn closed 4 months ago

almarzn commented 4 months ago

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

trim21 commented 4 months ago

thanks