From c4a2b2e77eead0074817fb1e46e6f1be2903b621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Wed, 3 May 2017 16:37:11 +0200 Subject: [PATCH] * src/http.c (gethttp): Support Wayback Machine's X-Archive-Orig-last-modified --- src/http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/http.c b/src/http.c index f42963fd..8b77a10a 100644 --- a/src/http.c +++ b/src/http.c @@ -3625,6 +3625,8 @@ gethttp (const struct url *u, struct url *original_url, struct http_stat *hs, } hs->newloc = resp_header_strdup (resp, "Location"); hs->remote_time = resp_header_strdup (resp, "Last-Modified"); + if (!hs->remote_time) // now look for the Wayback Machine's timestamp + hs->remote_time = resp_header_strdup (resp, "X-Archive-Orig-last-modified"); if (resp_header_copy (resp, "Content-Range", hdrval, sizeof (hdrval))) {