diff --git a/src/request.ts b/src/request.ts index 788e5c0..1782374 100644 --- a/src/request.ts +++ b/src/request.ts @@ -53,7 +53,7 @@ export async function request( const response = await fetch(url, { method: options.method, - body: hasBody ? undefined : JSON.stringify(options.body), + body: hasBody ? JSON.stringify(options.body) : undefined, headers: { 'Accept': 'application/json', 'Content-Type': 'application/json',