From be8f42af490f43f69d0e28a8bf5548bf0bc86886 Mon Sep 17 00:00:00 2001 From: Erik Olof Gunnar Andersson Date: Sun, 10 Nov 2024 00:16:00 +0100 Subject: [PATCH] Restart returns text, not json --- main/http_server/axe-os/src/app/services/system.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/http_server/axe-os/src/app/services/system.service.ts b/main/http_server/axe-os/src/app/services/system.service.ts index a863f687a..6c2023d72 100644 --- a/main/http_server/axe-os/src/app/services/system.service.ts +++ b/main/http_server/axe-os/src/app/services/system.service.ts @@ -69,7 +69,7 @@ export class SystemService { } public restart(uri: string = '') { - return this.httpClient.post(`${uri}/api/system/restart`, {}); + return this.httpClient.post(`${uri}/api/system/restart`, {}, {responseType: 'text'}); } public updateSystem(uri: string = '', update: any) {