mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-10 02:40:11 +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 |
||
|---|---|---|
| .. | ||
| dag.go | ||
| export.go | ||
| get.go | ||
| import.go | ||
| put.go | ||
| resolve.go | ||
| stat.go | ||