forked from Mirrors/doipjs
Add header to request
This commit is contained in:
parent
81db7e1027
commit
5dfe2412c4
1 changed files with 2 additions and 2 deletions
|
@ -56,8 +56,8 @@ 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)
|
const res = await req(spData.proof.fetch ? spData.proof.fetch : spData.proof.uri, {}, { Accept: 'application/json' })
|
||||||
|
|
||||||
switch (spData.proof.format) {
|
switch (spData.proof.format) {
|
||||||
case 'json':
|
case 'json':
|
||||||
return await res.json()
|
return await res.json()
|
||||||
|
|
Loading…
Reference in a new issue