[core] Change how `Cookie` headers are handled
commit3121512228487c9c690d3d39bfd2579addf96e07
authorSimon Sawicki <contact@grub4k.xyz>
Thu, 6 Jul 2023 16:21:04 +0000 (6 21:51 +0530)
committerpukkandan <pukkandan.ytdlp@gmail.com>
Thu, 6 Jul 2023 17:44:39 +0000 (6 23:14 +0530)
treeb84e0db5b8db1b07a190630a4f00bda081d4171b
parentf8b4bcc0a791274223723488bfbfc23ea3276641
[core] Change how `Cookie` headers are handled

Cookies are now saved and loaded under `cookies` key in the info dict
instead of `http_headers.Cookie`. Cookies passed in headers are
auto-scoped to the input URLs with a warning.

Ref: https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-v8mc-9377-rwjj

Authored by: Grub4K
test/test_YoutubeDL.py
yt_dlp/YoutubeDL.py
yt_dlp/downloader/common.py