Closed SgtPooki closed 7 months ago
:tada: This PR is included in version 1.3.6 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:
:tada: This PR is included in version 1.14.0 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:
:tada: This PR is included in version 1.0.0 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:
:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Title
fix: implicit accept header can be overridden by format query
Description
Fixes https://github.com/ipfs/helia-verified-fetch/issues/35 & also allows mapping of 'raw' to 'dag-json'. I imagine users will get errors if they try to accept dag-json for non-json content, we can address that later?
Notes & open questions
Basically, we were previously doing the following:
However, that was causing the bug in https://github.com/ipfs/helia-verified-fetch/issues/35 because the format query param was being ignored if the accept header was present (which it usually is for most clients), even if it wasn't a valid IPFS gateway Accept header
Now, we do this:
more notes are in https://github.com/ipfs/helia-verified-fetch/issues/35
Change checklist