Skip to content

If content type check receives redirect, follow it #1

@jaywink

Description

@jaywink

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions