Skip to content

Wrong file name saved if download from bit.ly via curl #1

@jeffhung

Description

@jeffhung

The bit.ly shortcut URL will redirect to github. However, curl -O will determine the destination file name by originating URL, not the redirected URL. Therefore, the file will be saved as python-make because it is now allowed to use . in bit.ly.

The -J (--remote-header-name) option does not help, since github will not return with the Content-Disposition response header.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions