ipfs / helia

An implementation of IPFS in JavaScript
https://helia.io
Other
814 stars 81 forks source link

feat: require content-type parser to set content-type #423

Closed SgtPooki closed 4 months ago

SgtPooki commented 4 months ago

Title

feat: require content-type parser to set content-type

Description

Related https://github.com/ipfs/helia/pull/416 Fixes https://github.com/ipfs/helia/issues/422

Notes & open questions

Change checklist

achingbrain commented 4 months ago

We may wish to also pass the file name to contentTypeParser if it's available? This way if it's passed index.html it can just use the extension to return text/html instead of nothing.

This is done now ✅