Skip to content

Commit 4e5f768

Browse files
authored
Feature, Add a lookup of Last-Modified in http file headers (#1909)
1 parent cf798ec commit 4e5f768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fsspec/implementations/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ async def _file_info(url, session, size_policy="head", **kwargs):
873873

874874
info["url"] = str(r.url)
875875

876-
for checksum_field in ["ETag", "Content-MD5", "Digest"]:
876+
for checksum_field in ["ETag", "Content-MD5", "Digest", "Last-Modified"]:
877877
if r.headers.get(checksum_field):
878878
info[checksum_field] = r.headers[checksum_field]
879879

0 commit comments

Comments
 (0)