diff --git a/rest/runMethod.ts b/rest/runMethod.ts index 2f72054cc..3f9a0874e 100644 --- a/rest/runMethod.ts +++ b/rest/runMethod.ts @@ -50,7 +50,7 @@ export async function runMethod( body: body ? JSON.stringify(body) : undefined, headers: { Authorization: rest.secretKey, - "Content-Type": "application/json", + "Content-Type": body ? "application/json" : undefined, }, method, });