Skip to content

Commit eca6715

Browse files
committed
Support application/ld+json mime type
Fixes #1842
1 parent 3c7c0c5 commit eca6715

File tree

1 file changed

+2
-0
lines changed
  • cardano-db-sync/src/Cardano/DbSync/OffChain

1 file changed

+2
-0
lines changed

cardano-db-sync/src/Cardano/DbSync/OffChain/Http.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ httpGetBytes manager request bytesToRead maxBytes url =
172172
OCFErrBadContentTypeHtml url (Text.decodeLatin1 ct)
173173
unless
174174
( "application/json"
175+
`BS.isInfixOf` ct
176+
|| "application/ld+json"
175177
`BS.isInfixOf` ct
176178
|| "text/plain"
177179
`BS.isInfixOf` ct

0 commit comments

Comments
 (0)