summaryrefslogtreecommitdiffstats
path: root/gallery_dl/downloader
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2023-01-12 03:41:59 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2023-01-12 03:41:59 -0500
commitf1051085013c0d702ef974b9b27ea43b3fc73259 (patch)
treeaaeb581d7b2ba0652b5e74b714b9036dd4436d4d /gallery_dl/downloader
parentfe385c3ff784ba3d19454a35446502c0ec295893 (diff)
New upstream version 1.24.4.upstream/1.24.4
Diffstat (limited to 'gallery_dl/downloader')
-rw-r--r--gallery_dl/downloader/http.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gallery_dl/downloader/http.py b/gallery_dl/downloader/http.py
index 4037420..0bf19c2 100644
--- a/gallery_dl/downloader/http.py
+++ b/gallery_dl/downloader/http.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-# Copyright 2014-2022 Mike Fährmann
+# Copyright 2014-2023 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -33,6 +33,7 @@ class HttpDownloader(DownloaderBase):
self.chunk_size = self.config("chunk-size", 32768)
self.metadata = extractor.config("http-metadata")
self.progress = self.config("progress", 3.0)
+ self.validate = self.config("validate", True)
self.headers = self.config("headers")
self.minsize = self.config("filesize-min")
self.maxsize = self.config("filesize-max")
@@ -175,7 +176,7 @@ class HttpDownloader(DownloaderBase):
# check for invalid responses
validate = kwdict.get("_http_validate")
- if validate:
+ if validate and self.validate:
result = validate(response)
if isinstance(result, str):
url = result