Make plain fetch to not log dude to errors

This commit is contained in:
kwaroran
2024-03-19 18:43:23 +09:00
parent c10200dc26
commit 784d9c8cd1

View File

@@ -1546,18 +1546,12 @@ export async function fetchNative(url:string, arg:{
}
}
else{
const r = await fetch(url, {
return await fetch(url, {
body: arg.body,
headers: headers,
method: arg.method,
signal: arg.signal
})
pipeFetchLog(fetchLogIndex, r.body)
return {
body: pipeFetchLog(fetchLogIndex, r.body),
headers: r.headers,
status: r.status
}
}
}