From f647f5d9c3923ae455fe19e500fbae23489ffd2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 6 Oct 2018 16:38:43 +0200 Subject: [PATCH] use 'verify' option for regular HTTP requests --- gallery_dl/extractor/common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gallery_dl/extractor/common.py b/gallery_dl/extractor/common.py index 4b3fc169..0b75e306 100644 --- a/gallery_dl/extractor/common.py +++ b/gallery_dl/extractor/common.py @@ -41,6 +41,8 @@ class Extractor(): ("downloader", "http", "retries"), 5) self._timeout = config.interpolate( ("downloader", "http", "timeout"), 30) + self._verify = config.interpolate( + ("downloader", "http", "verify"), True) def __iter__(self): return self.items() @@ -60,6 +62,7 @@ class Extractor(): tries = 0 retries = retries or self._retries kwargs.setdefault("timeout", self._timeout) + kwargs.setdefault("verify", self._verify) while True: try: response = self.session.request(method, url, **kwargs)