[utils] YoutubeDLHandler: don't use 'Youtubedl-user-agent' for overriding the default user agent

Setting the 'User-Agent' header is enough
This commit is contained in:
Jaime Marquínez Ferrándiz 2015-01-24 18:07:21 +01:00
parent 384b62028a
commit 3fcfb8e9fa
5 changed files with 4 additions and 9 deletions

View file

@ -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')