From 9c1fdc5c4b50b1231c223d8eb618269429f4b2a3 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Tue, 3 Nov 2020 00:23:50 +0100 Subject: [PATCH] Fix request headers --- src/serviceproviders.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serviceproviders.js b/src/serviceproviders.js index e2ed548..ea77e15 100644 --- a/src/serviceproviders.js +++ b/src/serviceproviders.js @@ -56,7 +56,7 @@ const match = (uri, opts) => { } const directRequestHandler = async (spData) => { - const res = await req(spData.proof.fetch ? spData.proof.fetch : spData.proof.uri, {}, { Accept: 'application/json' }) + const res = await req(spData.proof.fetch ? spData.proof.fetch : spData.proof.uri, 'json', { Accept: 'application/json' }) switch (spData.proof.format) { case 'json':