summaryrefslogtreecommitdiffhomepage
path: root/youtube_dl
diff options
context:
space:
mode:
authorYen Chi Hsuan <[email protected]>2016-04-21 13:06:06 +0800
committerYen Chi Hsuan <[email protected]>2016-04-21 13:06:06 +0800
commit2c0d9c6217f994b2742ff4e8e3fba7c7469b9f81 (patch)
tree305b84d5ee54270daa4c1ca74ae73f6d0bd83784 /youtube_dl
parent12a51345962bc032de45952ec60989f46544101c (diff)
downloadyoutube-dl-2c0d9c6217f994b2742ff4e8e3fba7c7469b9f81.tar.gz
youtube-dl-2c0d9c6217f994b2742ff4e8e3fba7c7469b9f81.zip
[extractor/common] Allow empty post data
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 5269059d0..02cd2c003 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -382,7 +382,7 @@ class InfoExtractor(object):
else:
if query:
url_or_request = update_url_query(url_or_request, query)
- if data or headers:
+ if data is not None or headers:
url_or_request = sanitized_Request(url_or_request, data, headers)
try:
return self._downloader.urlopen(url_or_request)