aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-08-09 17:10:40 +0600
committerSergey M․ <dstftw@gmail.com>2015-08-09 17:10:40 +0600
commit12bb392a0ff8adbde2ced75b0c4976d0aabc7f4f (patch)
treedd8215a95ef6ba1eece123a86605afcdd3f6fde1 /youtube_dl
parent08df685fe7764ef9f7dc271075340e4effc5e621 (diff)
[vimeo] Fix password protected videos (Closes #6507)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/vimeo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py
index 10d6745af..4c4e3c72a 100644
--- a/youtube_dl/extractor/vimeo.py
+++ b/youtube_dl/extractor/vimeo.py
@@ -203,7 +203,7 @@ class VimeoIE(VimeoBaseInfoExtractor):
url = url.replace('http://', 'https://')
password_request = compat_urllib_request.Request(url + '/password', data)
password_request.add_header('Content-Type', 'application/x-www-form-urlencoded')
- password_request.add_header('Cookie', 'xsrft=%s' % token)
+ password_request.add_header('Referer', url)
return self._download_webpage(
password_request, video_id,
'Verifying the password', 'Wrong password')