]> jfr.im git - yt-dlp.git/commit
[core] Change how `Cookie` headers are handled
authorSimon Sawicki <redacted>
Thu, 6 Jul 2023 16:21:04 +0000 (21:51 +0530)
committerpukkandan <redacted>
Thu, 6 Jul 2023 17:44:39 +0000 (23:14 +0530)
commit3121512228487c9c690d3d39bfd2579addf96e07
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