summaryrefslogtreecommitdiffstats
path: root/gallery_dl/downloader/http.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-05-26 06:45:53 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2025-05-26 06:45:53 -0400
commit7672a750cb74bf31e21d76aad2776367fd476155 (patch)
treed51170cce0e6d11a919386def8fa0e05dc9cf54b /gallery_dl/downloader/http.py
parentc679cd7a13bdbf6896e53d68fe2093910bc6625a (diff)
New upstream version 1.29.7.upstream/1.29.7
Diffstat (limited to 'gallery_dl/downloader/http.py')
-rw-r--r--gallery_dl/downloader/http.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gallery_dl/downloader/http.py b/gallery_dl/downloader/http.py
index faea9e5..c58e2fb 100644
--- a/gallery_dl/downloader/http.py
+++ b/gallery_dl/downloader/http.py
@@ -322,7 +322,10 @@ class HttpDownloader(DownloaderBase):
self.downloading = False
if self.mtime:
- kwdict.setdefault("_mtime", response.headers.get("Last-Modified"))
+ if "_http_lastmodified" in kwdict:
+ kwdict["_mtime"] = kwdict["_http_lastmodified"]
+ else:
+ kwdict["_mtime"] = response.headers.get("Last-Modified")
else:
kwdict["_mtime"] = None