Skip to content

Commit

Permalink
Merge pull request skot#467 from skot/fix_swarm_restart
Browse files Browse the repository at this point in the history
Swarm restart returns text, not json
  • Loading branch information
eandersson authored Nov 9, 2024
2 parents b3a2301 + be8f42a commit 45170b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/http_server/axe-os/src/app/services/system.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 45170b2

Please sign in to comment.