diff --git a/src/rest/request.ts b/src/rest/request.ts index 273eadb..ca26850 100644 --- a/src/rest/request.ts +++ b/src/rest/request.ts @@ -90,7 +90,7 @@ export class APIRequest { ) form.append('payload_json', JSON.stringify(body)) body = form - } else { + } else if (body !== undefined) { contentType = 'application/json' body = JSON.stringify(body) }