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 35ca6ad9ca
commit 7f6d5d319e

View File

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