digitalcredentials / security-document-loader

A common documentLoader for DCC JSON-LD using libraries.
MIT License
0 stars 1 forks source link

handle JSON response outside http-client #14

Closed beaulac closed 5 months ago

beaulac commented 5 months ago

Closes #13

Pass parseBody: false to http-client; add test that remote-loads a context document with Content-Type: application/ld+json.

Current test that fetches https://digitalcredentials.github.io/credential-status-playground/JWZM3H8WKU did not catch this bug because the response type from GitHub pages for an extensionless file is applicaton/octet-stream which does not cause the http-client to parse the body.