Fix API requests content type

This commit is contained in:
Yukino Song
2025-07-15 22:22:47 +08:00
parent 4f6334abdb
commit 2a97b3cbff
4 changed files with 21 additions and 8 deletions

View File

@@ -475,7 +475,10 @@
this.saved = this.restarted = false;
}, 5000);
fetch("./api/restart", {
method: 'POST'
method: 'POST',
headers: {
'Content-Type': 'application/json'
}
})
.then((resp) => {
if (resp.status !== 200) {