From ca6dedc9753e4f842ce6fff7e2c4f08404ff8518 Mon Sep 17 00:00:00 2001 From: Amatsagu <81469656+Amatsagu@users.noreply.github.com> Date: Sat, 1 Jan 2022 18:38:13 +0100 Subject: [PATCH] Update headers for REST Controller --- src/rest/runMethod.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rest/runMethod.ts b/src/rest/runMethod.ts index 33883f4a1..e20e9efbd 100644 --- a/src/rest/runMethod.ts +++ b/src/rest/runMethod.ts @@ -25,7 +25,8 @@ export async function runMethod( const result = await fetch(url, { body: JSON.stringify(body || {}), headers: { - authorization: rest.secretKey, + "Authorization": rest.secretKey, + "Content-Type": "application/json" }, method: method.toUpperCase(), }).catch((error) => {