Closed Mr0grog closed 2 years ago
At a quick glance, it looks like archive.org has started returning x-archive-orig-*
headers with lower-case header names, and we are looking for capitalized ones (which they used to be):
I’m guessing this started happening when they added HTTP/2 support (in HTTP/2, all header names are lower-case). That said, we can’t just switch to looking for lower-case here, since archive.org’s HTTP/1.1 responses still include upper-cased names for standard headers like Date
and Location
.
It looks like something has changed about either Requests or the Wayback Machine, and we are no longer including all the original archived headers in a Memento object’s
headers
property. For example:But the value of
memento.headers
should really be something like:(Based on https://web.archive.org/web/20220315020402id_/http://robbrackett.com/)