summaryrefslogtreecommitdiffstats
path: root/gallery_dl/downloader/http.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2022-04-09 00:15:19 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2022-04-09 00:15:19 -0400
commit2fe1dfed848fc26b7419e3bfe91a62e686960429 (patch)
tree901cb64e2a1748df2bb8c7abc60ff6d72ae4bc27 /gallery_dl/downloader/http.py
parentc2e774d3f5a4499b8beb5a12ab46a0099b16b1e7 (diff)
New upstream version 1.21.1.upstream/1.21.1
Diffstat (limited to 'gallery_dl/downloader/http.py')
-rw-r--r--gallery_dl/downloader/http.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/gallery_dl/downloader/http.py b/gallery_dl/downloader/http.py
index b878f5f..5622462 100644
--- a/gallery_dl/downloader/http.py
+++ b/gallery_dl/downloader/http.py
@@ -120,9 +120,14 @@ class HttpDownloader(DownloaderBase):
# connect to (remote) source
try:
response = self.session.request(
- "GET", url, stream=True, headers=headers,
- timeout=self.timeout, verify=self.verify,
- proxies=self.proxies)
+ kwdict.get("_http_method", "GET"), url,
+ stream=True,
+ headers=headers,
+ data=kwdict.get("_http_data"),
+ timeout=self.timeout,
+ proxies=self.proxies,
+ verify=self.verify,
+ )
except (ConnectionError, Timeout) as exc:
msg = str(exc)
continue