ステータスコードも返すように
This commit is contained in:
parent
5042354ce0
commit
4f95837240
@ -43,6 +43,7 @@ export function createAiScriptEnv(opts) {
|
||||
utils.assertString(resource);
|
||||
const response = init ? await fetch(resource.value, utils.valToJs(init)) : await fetch(resource.value);
|
||||
const returnObject = {
|
||||
status: response.status,
|
||||
headers: new Object(),
|
||||
body: await response.text(),
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user