forked from Mirrors/doipjs
Fix request headers
This commit is contained in:
parent
b04e5046ed
commit
9c1fdc5c4b
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ const match = (uri, opts) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const directRequestHandler = async (spData) => {
|
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) {
|
switch (spData.proof.format) {
|
||||||
case 'json':
|
case 'json':
|
||||||
|
|
Loading…
Reference in a new issue