mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 02:47:48 +08:00
set proper Content-Type headers for RPC endpoints that return binary data: - `dag export`: application/vnd.ipld.car - `block get`: application/vnd.ipld.raw - `diag profile`: application/zip - `get`: application/x-tar or application/gzip (already worked, migrated to new API) uses the new OctetStream encoding type and SetContentType() method from go-ipfs-cmds to specify custom MIME types for binary responses. refs: https://github.com/ipfs/kubo/issues/2376 |
||
|---|---|---|
| .. | ||
| example-folder | ||
| kubo-as-a-library | ||
| go-ipfs-as-a-library | ||