From: Yen Chi Hsuan Date: Thu, 21 Apr 2016 05:06:06 +0000 (+0800) Subject: [extractor/common] Allow empty post data X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=2c0d9c6217f994b2742ff4e8e3fba7c7469b9f81;p=youtube-dl [extractor/common] Allow empty post data --- 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)