diff --git a/src/serviceproviders.js b/src/serviceproviders.js index d30ab51..32a32df 100644 --- a/src/serviceproviders.js +++ b/src/serviceproviders.js @@ -65,7 +65,7 @@ const match = (uri, opts) => { } const directRequestHandler = async (spData) => { - const res = await req(spData.proof.fetch ? spData.proof.fetch : spData.proof.uri, 'json', { Accept: 'application/json' }) + const res = await req(spData.proof.fetch ? spData.proof.fetch : spData.proof.uri, null, { Accept: 'application/json' }) switch (spData.proof.format) { case 'json': @@ -82,7 +82,7 @@ const directRequestHandler = async (spData) => { const proxyRequestHandler = async (spData) => { const url = spData.proof.fetch ? spData.proof.fetch : spData.proof.uri - const res = await req(utils.generateProxyURL(spData.proof.format, url), 'json', { Accept: 'application/json' }) + const res = await req(utils.generateProxyURL(spData.proof.format, url), null, { Accept: 'application/json' }) const json = await res.json() return json.content }