aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-04-13 22:27:52 +0700
committerSergey M․ <dstftw@gmail.com>2018-04-13 22:28:33 +0700
commit68ddba20ae4e0ab28146e80d3e112a5a2661c386 (patch)
tree618049a84789da049b5285d639f578792e4ff887
parent92ded33a05e0760d0ae0e804a1dca0d8a84f3d14 (diff)
[instagram:user] Remove User-Agent from signature (closes #16119)
-rw-r--r--youtube_dl/extractor/instagram.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/extractor/instagram.py b/youtube_dl/extractor/instagram.py
index 76452a6a1..8da1d5f2f 100644
--- a/youtube_dl/extractor/instagram.py
+++ b/youtube_dl/extractor/instagram.py
@@ -11,7 +11,6 @@ from ..utils import (
get_element_by_attribute,
int_or_none,
lowercase_escape,
- std_headers,
try_get,
)
@@ -258,7 +257,7 @@ class InstagramUserIE(InfoExtractor):
'first': 100,
'after': cursor,
})
- s = '%s:%s:%s:%s' % (rhx_gis, csrf_token, std_headers['User-Agent'], variables)
+ s = '%s:%s:%s' % (rhx_gis, csrf_token, variables)
media = self._download_json(
'https://www.instagram.com/graphql/query/', uploader_id,
'Downloading JSON page %d' % page_num, headers={