[YoutubeDL] Fill the info dict 'http_headers' field with all the headers available
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 24 Jan 2015 17:52:26 +0000 (18:52 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 24 Jan 2015 17:56:04 +0000 (18:56 +0100)
commite5660ee6aebacee4b149648bee1a7ce1ec72c1e4
tree001f32088e9767f57858d17f346bb8347685e533
parent587a9c27496979d983296944fee8d1fa589e1b85
[YoutubeDL] Fill the info dict 'http_headers' field with all the headers available

Useful for external tools using the json output.

The methods '_calc_headers' and '_calc_cookies' have been copied from the downloader/external, now they just use "info_dict['http_headers']".
youtube_dl/YoutubeDL.py
youtube_dl/downloader/external.py