mirror of
https://github.com/mirror/wget.git
synced 2024-12-28 05:40:08 +08:00
* src/http.c (gethttp): Support Wayback Machine's X-Archive-Orig-last-modified
This commit is contained in:
parent
f6376ac0dc
commit
c4a2b2e77e
@ -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)))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user