From 9b8a8243f48d349c8b7e06abe5b5b2715a537c98 Mon Sep 17 00:00:00 2001 From: TheLazzziest Date: Sun, 24 Aug 2025 15:01:26 +0300 Subject: [PATCH] Feature, Add a lookup of Last-Modified in http file headers --- fsspec/implementations/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsspec/implementations/http.py b/fsspec/implementations/http.py index ea8d79d46..093fa29be 100644 --- a/fsspec/implementations/http.py +++ b/fsspec/implementations/http.py @@ -873,7 +873,7 @@ async def _file_info(url, session, size_policy="head", **kwargs): info["url"] = str(r.url) - for checksum_field in ["ETag", "Content-MD5", "Digest"]: + for checksum_field in ["ETag", "Content-MD5", "Digest", "Last-Modified"]: if r.headers.get(checksum_field): info[checksum_field] = r.headers[checksum_field]