For example:
$ curl -I https://archive.org/download/xxxxxxxxxxxxxxx.mp3
HTTP/1.1 302 Found
Content-Type: text/html; charset=UTF-8
Location: https://ia802508.us.archive.org/21/items/xxxxxxxxxxxxxxxxxxxxxxx.mp3
On 301/302, fetch HEAD of the Location and use that content type in the check. Can requests be tolled to do this automatically?