Skip to content

Downloading gzipped files in browsers #158

@achingbrain

Description

@achingbrain

If you try to download (for example) a .tar.gz via sirv in a browser, because the file name ends in .gz the toHeaders function sets Content-Encoding to "gzip".

This makes browsers ungzip the file before making the bytes available to the user.

If the intention was to download a .tar.gz file things break because they actually get back the equivalent of a .tar file.

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