From cef8b12713f845b7ac92d3467e1cd7813efb287c Mon Sep 17 00:00:00 2001 From: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Date: Fri, 19 Jan 2024 10:12:16 -0500 Subject: [PATCH] fix(ui): set content-type for certain UI requests (#16923) Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> --- ui/src/app/shared/services/applications-service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/src/app/shared/services/applications-service.ts b/ui/src/app/shared/services/applications-service.ts index fb53a7a09c4ee..ea0e09ba3a76f 100644 --- a/ui/src/app/shared/services/applications-service.ts +++ b/ui/src/app/shared/services/applications-service.ts @@ -328,6 +328,7 @@ export class ApplicationsService { kind: resource.kind, group: resource.group }) + .set("Content-Type", "application/json") .send(JSON.stringify(action)) .then(res => (res.body.actions as models.ResourceAction[]) || []); } @@ -345,6 +346,7 @@ export class ApplicationsService { group: resource.group || '', // The group query param must be present even if empty. patchType }) + .set("Content-Type", "application/json") .send(JSON.stringify(patch)) .then(res => res.body as {manifest: string}) .then(res => JSON.parse(res.manifest) as models.State); @@ -364,6 +366,7 @@ export class ApplicationsService { force, orphan }) + .set('Content-Type', 'application/json') .send() .then(() => true); }