Skip to content

Commit

Permalink
Support application/ld+json mime type
Browse files Browse the repository at this point in the history
Fixes #1842
  • Loading branch information
kderme committed Sep 17, 2024
1 parent 78e1109 commit b9bcd40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cardano-db-sync/src/Cardano/DbSync/OffChain/Http.hs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ httpGetBytes manager request bytesToRead maxBytes url =
OCFErrBadContentTypeHtml url (Text.decodeLatin1 ct)
unless
( "application/json"
`BS.isInfixOf` ct
|| "application/ld+json"
`BS.isInfixOf` ct
|| "text/plain"
`BS.isInfixOf` ct
Expand Down

0 comments on commit b9bcd40

Please sign in to comment.