X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=youtube_dl%2Fdownloader%2Fhttp.py;h=90a2e4c53935f60ed01f4dbae08e1732c04beeca;hb=3fcfb8e9faf3cf1dcadedd6fecc5158a86d07065;hp=e68f20c9f46a93ebfeca2ff47dc0843f4ab94874;hpb=384b62028a4c3c35727d714ccfc9944a36934069;p=youtube-dl diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.py index e68f20c9f..90a2e4c53 100644 --- a/youtube_dl/downloader/http.py +++ b/youtube_dl/downloader/http.py @@ -25,7 +25,7 @@ class HttpFD(FileDownloader): # Do not include the Accept-Encoding header headers = {'Youtubedl-no-compression': 'True'} if 'user_agent' in info_dict: - headers['Youtubedl-user-agent'] = info_dict['user_agent'] + headers['User-agent'] = info_dict['user_agent'] if 'http_referer' in info_dict: headers['Referer'] = info_dict['http_referer'] add_headers = info_dict.get('http_headers')