fix request function return value to include status value

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-02-28 22:50:12 +00:00
parent 2df5284d90
commit 0caaded1a5

View File

@ -151,6 +151,7 @@ async function request (url, content) {
});
let data = await response.json();
data.status = response.status;
return data;
}