From ba2b345de05f595f04f3942c3e92432b213af0a1 Mon Sep 17 00:00:00 2001 From: Vallari Agrawal Date: Thu, 12 Sep 2024 01:31:56 +0530 Subject: [PATCH] content type application/json Signed-off-by: Vallari Agrawal --- src/lib/teuthologyAPI.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/teuthologyAPI.ts b/src/lib/teuthologyAPI.ts index c3c9728..72df590 100644 --- a/src/lib/teuthologyAPI.ts +++ b/src/lib/teuthologyAPI.ts @@ -69,7 +69,10 @@ function useRunKill(): UseMutationResult { mutationKey: ['run-kill', { url }], mutationFn: (payload) => ( axios.post(url, data, { - withCredentials: true + withCredentials: true, + headers: { + 'Content-Type': 'application/json', + } }) ), retry: 0,