Skip to content

Commit

Permalink
fix: ensure (dag)-cbor/json codecs are registered
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Mar 24, 2023
1 parent b3c7bf1 commit feea0bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gateway/handler_codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ import (
mc "github.com/multiformats/go-multicodec"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/trace"

// Ensure basic codecs are registered.
_ "github.com/ipld/go-ipld-prime/codec/cbor"
_ "github.com/ipld/go-ipld-prime/codec/dagcbor"
_ "github.com/ipld/go-ipld-prime/codec/dagjson"
_ "github.com/ipld/go-ipld-prime/codec/json"
)

// codecToContentType maps the supported IPLD codecs to the HTTP Content
Expand Down

0 comments on commit feea0bd

Please sign in to comment.