The Kubo IPFS gateway detects the content-type of the file and adds the content-type in the response headers.