Add header to request

This commit is contained in:
Yarmo Mackenbach 2020-11-02 18:21:56 +01:00
parent 81db7e1027
commit 5dfe2412c4

View file

@ -56,8 +56,8 @@ const match = (uri, opts) => {
}
const directRequestHandler = async (spData) => {
const res = await req(spData.proof.fetch ? spData.proof.fetch : spData.proof.uri)
const res = await req(spData.proof.fetch ? spData.proof.fetch : spData.proof.uri, {}, { Accept: 'application/json' })
switch (spData.proof.format) {
case 'json':
return await res.json()