mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 02:25:11 +00:00
[extractor/common] Allow empty post data
This commit is contained in:
parent
12a5134596
commit
2c0d9c6217
1 changed files with 1 additions and 1 deletions
|
@ -382,7 +382,7 @@ def _request_webpage(self, url_or_request, video_id, note=None, errnote=None, fa
|
||||||
else:
|
else:
|
||||||
if query:
|
if query:
|
||||||
url_or_request = update_url_query(url_or_request, 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)
|
url_or_request = sanitized_Request(url_or_request, data, headers)
|
||||||
try:
|
try:
|
||||||
return self._downloader.urlopen(url_or_request)
|
return self._downloader.urlopen(url_or_request)
|
||||||
|
|
Loading…
Reference in a new issue