Skip to content

Set file modified time to value reported by wayback machine#220

Open
davidrg wants to merge 1 commit intohartator:masterfrom
davidrg:master
Open

Set file modified time to value reported by wayback machine#220
davidrg wants to merge 1 commit intohartator:masterfrom
davidrg:master

Conversation

@davidrg
Copy link

@davidrg davidrg commented Mar 28, 2022

The wayback machine provides the modified time reported by the original server at time of archival via the x-archive-orig-last-modified response header. This change sets the saved files modified time to the value reported by the wayback machine. This may be a partial fix for #174 (doesn't set creation time).

I don't know ruby at all but this seems to work for me.

The wayback machine provides the modified time reported by the original server at time of archival via the x-archive-orig-last-modified response header. This change sets the downloaded files modified time to that value if available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant