]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[utils] Use pure browser header for User-Agent (closes #17236)
authorSergey M․ <dstftw@gmail.com>
Tue, 14 Aug 2018 16:27:12 +0000 (23:27 +0700)
committerSergey M․ <dstftw@gmail.com>
Tue, 14 Aug 2018 16:27:12 +0000 (23:27 +0700)
youtube_dl/utils.py

index 29cafd8f05397f82777e114f8429bd78c15e0387..0c830ba71fbde4f2e519e1f10857cfe5e9da6c56 100644 (file)
@@ -82,7 +82,7 @@ def register_socks_protocols():
 compiled_regex_type = type(re.compile(''))
 
 std_headers = {
-    'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0 (Chrome)',
+    'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0',
     'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
     'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
     'Accept-Encoding': 'gzip, deflate',