Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix: fix content-type detection by doing a fall-back based on the ext… #1482

Merged
merged 1 commit into from
Aug 2, 2018

Commits on Aug 2, 2018

  1. fix: fix content-type by doing a fall-back using extensions

    The JS IPFS gateway was only responding with the correct content-type for some mime-types, see https://github.com/sindresorhus/file-type#supported-file-types.
    This commit now fall-backs to detecting based on the extension as well.
    
    Note that SVGs aren't supported by the `file-type` module.
    satazor committed Aug 2, 2018
    Configuration menu
    Copy the full SHA
    49fedb6 View commit details
    Browse the repository at this point in the history