[core] Update redirect handling from yt-dlp
authordirkf <fieldhouse@gmx.net>
Wed, 7 Jun 2023 13:51:50 +0000 (14:51 +0100)
committerdirkf <fieldhouse@gmx.net>
Tue, 18 Jul 2023 09:50:46 +0000 (10:50 +0100)
commit46fde7caeeab13a6277aab22a0e8a29e10c30cc3
treef4744405e643df24ef573852d55e1635092ffa0c
parent648dc5304cb2476592ff142988b8c62675011fcc
[core] Update redirect handling from yt-dlp

* Thx coletdjnz: https://github.com/yt-dlp/yt-dlp/pull/7094
* add test that redirected `POST` loses its `Content-Type`
test/test_http.py
youtube_dl/utils.py