* src/http.c (gethttp): Support Wayback Machine's X-Archive-Orig-last-modified

This commit is contained in:
Tim Rühsen 2017-05-03 16:37:11 +02:00
parent f6376ac0dc
commit c4a2b2e77e

View File

@ -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)))
{