about summary refs log tree commit diff
path: root/youtube_dl/downloader/http.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-01-24 18:07:21 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-01-24 18:07:21 +0100
commit3fcfb8e9faf3cf1dcadedd6fecc5158a86d07065 (patch)
tree3f99926574a65e8193e1e16e765117f0e8eded8f /youtube_dl/downloader/http.py
parent384b62028a4c3c35727d714ccfc9944a36934069 (diff)
downloadyoutube-dl-3fcfb8e9faf3cf1dcadedd6fecc5158a86d07065.tar.gz
youtube-dl-3fcfb8e9faf3cf1dcadedd6fecc5158a86d07065.tar.xz
youtube-dl-3fcfb8e9faf3cf1dcadedd6fecc5158a86d07065.zip
[utils] YoutubeDLHandler: don't use 'Youtubedl-user-agent' for overriding the default user agent
Setting the 'User-Agent' header is enough
Diffstat (limited to 'youtube_dl/downloader/http.py')
-rw-r--r--youtube_dl/downloader/http.py2
1 files changed, 1 insertions, 1 deletions
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')