[utils] Rework URL path munging for ., .. components
authordirkf <fieldhouse@gmx.net>
Fri, 28 Jul 2023 05:19:15 +0000 (06:19 +0100)
committerdirkf <fieldhouse@gmx.net>
Sat, 29 Jul 2023 13:27:26 +0000 (14:27 +0100)
commitabef53466da1f7d2e79f5644718a2cf7524abc49
treec0372d8e3f987a49b793372a8f75c58dd55ca6b4
parente7926ae9f4e5fa258696551a39295402819280c9
[utils] Rework URL path munging for ., .. components

* move processing to YoutubeDLHandler
* also process `Location` header for redirect
* use tests from https://github.com/yt-dlp/yt-dlp/pull/7662
test/test_http.py
test/test_utils.py
youtube_dl/YoutubeDL.py
youtube_dl/utils.py