autobrr/internal
soup a5d6da7373
feat(releases): improve error handling on torrent download (#880)
* feat/check-content-type-torrent-download

* check for text/html instead

* check for status codes above 308

* refactor

* make sure < 499 goes to content-type check

* fix content header check by accounting for charset

* retry on 404

* change to errors.New for 404

* make use of verbs

* handle http errors as cases

* check contentType with strings.Contains instead

* adjust message for unauthorized and forbidden

---------

Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
2023-05-06 18:22:08 +02:00
..
action feat(downloadclients): rtorrent improve basic auth handling (#914) 2023-05-06 18:16:34 +02:00
announce chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
api chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
auth chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
client chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
config fix(config): lxc container detection (#900) 2023-05-02 18:48:12 +02:00
database fix(filters): max downloads include pending with postgres (#901) 2023-05-02 19:55:43 +02:00
domain feat(releases): improve error handling on torrent download (#880) 2023-05-06 18:22:08 +02:00
download_client feat(downloadclients): rtorrent improve basic auth handling (#914) 2023-05-06 18:16:34 +02:00
events chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
feed chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
filter fix(webhooks): increase timeout (#902) 2023-05-02 21:44:38 +02:00
http fix(web): PWA asset and route handling (#898) 2023-05-02 19:06:53 +02:00
indexer fix(indexers): xspeeds update passkey help (#907) 2023-05-06 16:07:25 +02:00
irc chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
logger chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
mock chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
notification chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
release chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
scheduler chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
server chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
update chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
user chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
utils chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00