projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57c68ec
)
[utils] Use pure browser header for User-Agent (closes #17236)
author
Sergey M․
<dstftw@gmail.com>
Tue, 14 Aug 2018 16:27:12 +0000
(23:27 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 14 Aug 2018 16:27:12 +0000
(23:27 +0700)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index 29cafd8f05397f82777e114f8429bd78c15e0387..0c830ba71fbde4f2e519e1f10857cfe5e9da6c56 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-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',