mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 18:53:21 +01:00
[downloader:http] support using a different method than GET (#2433)
by setting the '_http_method' metadata field for a file
This commit is contained in:
parent
6f1d5e8ab9
commit
be3492776b
@ -120,9 +120,9 @@ 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, timeout=self.timeout,
|
||||
verify=self.verify, proxies=self.proxies)
|
||||
except (ConnectionError, Timeout) as exc:
|
||||
msg = str(exc)
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user